CosmoCoffee Forum Index CosmoCoffee

 
 FAQFAQ   SearchSearch  MemberlistSmartFeed   MemberlistMemberlist    RegisterRegister 
   ProfileProfile   Log inLog in 
Arxiv New Filter | Bookmarks & clubs | Arxiv ref/author:

Compiling Planck Likelihood @ NERSC
 
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software
View previous topic :: View next topic  
Author Message
Federico Bianchini



Joined: 25 Jun 2013
Posts: 9
Affiliation: University of Melbourne

PostPosted: January 17 2018  Reply with quote

Hi there,

I've been struggling to compile the Planck likelihood at NERSC (on both Cori/Edison).

Does anyone have some experience with this?

In my specific case on Edison, I have loaded the following modules python/2.7-anaconda−4.4/cython, intel/18.0.1.163, intel/16.0.3.210.
If I try compiling with the waf tools, here's what I get:

Code:

fbianc@edison02:~/LensLike/plc-2.0$ ./waf configure --lapack_mkl=$MKLROOT --forceinstall_all_deps --ifort --icc
Setting top to                           : /global/u1/f/fbianc/LensLike/plc-2.0
Setting out to                           : /global/u1/f/fbianc/LensLike/plc-2.0/build
Checking for program 'icc, ICL'          : cc
Checking for program 'ar'                : /usr/bin/ar
Compile a test code with icc             : failed
No suitable c compiler found (cause: 'The configuration failed
(complete log in /global/u1/f/fbianc/LensLike/plc-2.0/build/config.log)')
The configuration failed
(complete log in /global/u1/f/fbianc/LensLike/plc-2.0/build/config.log)


I've also tried a Makefile based approach, and here's the output (sorry, it's rather lengthy):

Code:

fbianc@edison02:~/LensLike/plc-2.0$ make install                                                               

Compile clik 723c1a4b0580 MAKEFILE
Using  CC = cc                     
Using  FC = ftn                   
Using  CFLAGS = -m64 -fopenmp -fPIC  -D HAS_LAPACK -D LAPACK_CLIK -D NOHEALPIX -D CLIK_LENSING -D 'CLIKSVNVERSION=723c1a4b0580 MAKEFILE' -D CAMSPEC_V1 -I src -I src/cldf -I src/minipmc -I src/lenslike/plenslike -I src/plik -I/global/homes/f/fbianc/softwares/cfitsio_intel/include                                                         
Using  FFLAGS = -ffree-line-length-0 -m64 -fopenmp -fPIC  -D HAS_LAPACK -D LAPACK_CLIK -D NOHEALPIX -D CLIK_LENSING -D 'CLIKSVNVERSION=723c1a4b0580 MAKEFILE' -D CAMSPEC_V1 -J /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp                                                                                                                 
Using the following lapack link line:                                                                                                                                   
Using the following cfitsio link line: -L/global/homes/f/fbianc/softwares/cfitsio_intel/lib -lcfitsio                                                                   
Using the following fortran runtime link line:                                                                                                                         
Build dir: /global/u1/f/fbianc/LensLike/plc-2.0/buildir                                                                                                                 

src/minipmc/errorlist.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/errorlist.o
src/minipmc/io.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/io.o               
src/minipmc/distribution.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/distribution.o
src/cldf/cldf.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/cldf.o                   
src/clik_dic.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_dic.o                 
src/clik.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik.o                         
src/lklbs.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/lklbs.o                       
src/lowly_common.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/lowly_common.o         
src/clik_helper.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_helper.o           
src/actspt/Highell_options.F90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/Highell_options.f90.o
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                         
ifort: command line warning #10006: ignoring unknown option '-J'                                           
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'     
src/actspt/Highell_subroutines.F90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/Highell_subroutines.f90.o
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                 
ifort: command line warning #10006: ignoring unknown option '-J'                                                   
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'             
src/actspt/Foregrounds_loading.F90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/Foregrounds_loading.f90.o
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                 
ifort: command line warning #10006: ignoring unknown option '-J'                                                   
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'             
src/actspt/ACT_equa_likelihood.F90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/ACT_equa_likelihood.f90.o
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                 
ifort: command line warning #10006: ignoring unknown option '-J'                                                   
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'             
src/actspt/SPT_reichardt_likelihood.F90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/SPT_reichardt_likelihood.f90.o
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/actspt/ACT_south_likelihood.F90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/ACT_south_likelihood.f90.o         
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/actspt/SPT_keisler_likelihood.F90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/SPT_keisler_likelihood.f90.o     
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/actspt/Highell_likelihood.F90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/Highell_likelihood.f90.o             
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/actspt/clik_actspt.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_actspt.f90.o                           
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/actspt/clik_actspt.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_actspt.o                                 
src/camspec/CAMspec.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/CAMspec.f90.o                                 
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/camspec/clik_CAMspec.F90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_CAMspec.f90.o                       
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/camspec/clik_CAMspec.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_CAMspec.o                             
src/gibbs/comm_br_mod.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/comm_br_mod.f90.o                           
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/gibbs/comm_gauss_br_mod.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/comm_gauss_br_mod.f90.o               
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/gibbs/comm_lowl_mod_dist.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/comm_lowl_mod_dist.f90.o             
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/gibbs/clik_gibbs.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_gibbs.f90.o                             
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/gibbs/clik_gibbs.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_gibbs.o                                   
src/bflike/healpix_types.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/healpix_types.f90.o                       
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/lowlike/read_archive_map.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/read_archive_map.f90.o               
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/lowlike/read_fits.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/read_fits.f90.o                             
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/lowlike/br_mod_dist.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/br_mod_dist.f90.o                         
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/lowlike/Planck_options.F90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/Planck_options.f90.o                   
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/lowlike/Planck_teeebb_pixlike.F90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/Planck_teeebb_pixlike.f90.o     
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/lowlike/Planck_likelihood.F90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/Planck_likelihood.f90.o             
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/lowlike/clik_lowlike.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_lowlike.f90.o                       
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/lowlike/clik_lowlike.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_lowlike.o                             
src/bflike/long_intrinsic_smw.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/long_intrinsic_smw.f90.o             
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/bflike/fitstools_smw.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/fitstools_smw.f90.o                       
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/bflike/bflike_QUonly.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/bflike_QUonly.f90.o                       
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/bflike/bflike.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/bflike.f90.o                                     
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/bflike/bflike_smw.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/bflike_smw.f90.o                             
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/bflike/clik_bflike.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_bflike.f90.o                           
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/bflike/clik_bflike.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_bflike.o                                 
src/cmbonly/plik_cmbonly.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/plik_cmbonly.f90.o                       
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/cmbonly/clik_cmbonly.f90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_cmbonly.f90.o                       
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
src/cmbonly/clik_cmbonly.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_cmbonly.o                             
src/plik/smica.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/smica.o                                               
src/plik/clik_hfipack.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_hfipack.o                                 
src/plik/clik_parametric.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_parametric.o                           
src/plik/clik_parametric_addon.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_parametric_addon.o               
src/plik/component_plugin/rel2015/fg2015.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/fg2015.o                   
src/plik/component_plugin/rel2015/corrnoise.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/corrnoise.o             
src/plik/component_plugin/rel2015/leakage.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/leakage.o                 
src/lenslike/plenslike/plenslike_dat_mono.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/plenslike_dat_mono.o       
src/lenslike/plenslike/plenslike_dat_quad.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/plenslike_dat_quad.o       
src/lenslike/plenslike/plenslike_dat_qecl.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/plenslike_dat_qecl.o       
src/lenslike/plenslike/plenslike_dat_full.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/plenslike_dat_full.o       
src/lenslike/plenslike/qest.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/qest.o                                   
src/lenslike/plenslike/wignerd.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/wignerd.o                             
src/clik_lensing.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_lensing.o                                     
build /global/u1/f/fbianc/LensLike/plc-2.0/buildir/libclik.so                                                               
src/clik_fortran.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_fortran.o                                     
src/clik.F90  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik.f90.o                                               
ifort: command line warning #10006: ignoring unknown option '-ffree-line-length-0'                                           
ifort: command line warning #10006: ignoring unknown option '-J'                                                             
ifort: warning #10145: no action performed for file '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp'                       
build /global/u1/f/fbianc/LensLike/plc-2.0/buildir/libclik_f90.so                                                           
src/clik_example_c.c  ->  /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_example_c.o                                 
src/clik_example_c.c(45): warning #556: a value of type "int" cannot be assigned to an entity of type "double *"             
      cl_and_pars = read_double_vector(argv[i],ndim,err);                                                                   
                  ^                                                                                                         

src/clik_example_c.c(135): warning #556: a value of type "int" cannot be assigned to an entity of type "double *"
      cl_and_pars = read_double_vector(argv[i],ndim,err);                                                       
                  ^                                                                                             

echo -e  "build \x1b[36;11m/global/u1/f/fbianc/LensLike/plc-2.0/buildir/clik_example_C \x1b[0m"
build /global/u1/f/fbianc/LensLike/plc-2.0/buildir/clik_example_C                             
cc -m64 -L/global/homes/f/fbianc/softwares/cfitsio_intel/lib -lcfitsio   -ldl -lm -lpthread  -L/global/u1/f/fbianc/LensLike/plc-2.0/buildir -lclik /global/u1/f/fbianc/LensLike/plc-2.0/buildir/tmp/clik_example_c.o -o /global/u1/f/fbianc/LensLike/plc-2.0/buildir/clik_example_C                                                             
icc: warning #10315: specifying -lm before files may supersede the Intel(R) math library and affect performance                                                         
/usr/bin/ld: cannot find -lclik                                                                                                                                         
Makefile:354: recipe for target '/global/u1/f/fbianc/LensLike/plc-2.0/buildir/clik_example_C' failed                                                                   
make: *** [/global/u1/f/fbianc/LensLike/plc-2.0/buildir/clik_example_C] Error 1                                                                                         


Any help or suggestion would be greatly appreciated.

Thanks,
~federico
Back to top
View user's profile   Visit poster's website
Karim Benabed



Joined: 18 Dec 2008
Posts: 8
Affiliation: Institut d'Astrophysique de Paris

PostPosted: January 17 2018  Reply with quote

Hi

You cannot use at the same time intel/18.0.1.163 and intel/16.0.3.210.

I guess that you are actually using intel/18.0.1.163

In this version, intel deprecated and removed the -openmp option and replaced it by -qopenmp, and -fopenmp would be silently accepted (but do not switch on openmp)

Unfortunately, plc is not aware of that...

You can modify the configure code to solve the issue.

In file waf_tools/try_icc.py, line 32, replace -openmp by -qopenmp
In file waf_tools/try_ifort.py line 56, replace -openmp by -qopenmp
In file waf_tools/c_openmp.py line 28, replace -fopenmp by -qopenmp (beware different option from previous lines)

Finally, if you need to install pyfits, another files needs to be modified, as the pypi repository now requires the use of https instead of http.

Looks like your config is problematic as even a simple c test code cannot be compiled by the configure script. So you will need to modify file
wscript line 579 and replace http by https

With those modifications, plc should configure and compile on edison using the waf tool and the following command lines

./waf configure –install_all_deps –lapack_mkl=$MKLROOT –icc –ifort
./waf install

Hope that helps !

a+
kb
Back to top
View user's profile  
Federico Bianchini



Joined: 25 Jun 2013
Posts: 9
Affiliation: University of Melbourne

PostPosted: January 18 2018  Reply with quote

Hi Karim,

thanks for your quick and detailed reply!

And sorry for my sloppiness, what I meant is that I first unloaded intel/18.0.1.163 and then loaded intel/16.0.3.210.

To be consistent with your suggestions I sticked to the 18.0.1.163 version (and just to avoid any misunderstanding, here's the complete list of loaded modules)

Code:

fbianc@edison02:~/LensLike/plc-2.0$ module list
Currently Loaded Modulefiles:
  1) modules/3.2.10.6                              12) dvs/2.7_2.2.32-6.0.4.1_7.2__ged1923a
  2) nsg/1.2.0                                     13) alps/6.4.1-6.0.4.0_7.2__g86d0f3d.ari
  3) craype-network-aries                          14) rca/2.2.15-6.0.4.1_13.1__g46acb0f.ari
  4) craype/2.5.12                                 15) atp/2.1.1
  5) udreg/2.3.2-6.0.4.0_12.2__g2f9c3ee.ari        16) PrgEnv-intel/6.0.4
  6) ugni/6.0.14-6.0.4.0_14.1__ge7db4a2.ari        17) craype-ivybridge
  7) pmi/5.0.12                                    18) cray-mpich/7.6.2
  8) dmapp/7.1.1-6.0.4.0_46.2__gb8abda2.ari        19) altd/2.0
  9) gni-headers/5.0.11-6.0.4.0_7.2__g7136988.ari  20) darshan/3.1.4
 10) xpmem/2.2.2-6.0.4.0_3.1__g43b0535.ari         21) python/2.7-anaconda-4.4
 11) job/2.2.2-6.0.4.0_8.2__g3c644b5.ari           22) intel/18.0.1.163


After implementing the modifications to the waf_tools files as recommended, I tried to run the waf configure script as

./waf configure –install_all_deps –lapack_mkl=$MKLROOT –icc –ifort

although, I still got the same output error as above, i.e.

Code:

fbianc@edison02:~/LensLike/plc-2.0$ ./waf configure --install_all_deps --lapack_mkl=$MKLROOT --icc --ifort
Setting top to                           : /global/u1/f/fbianc/LensLike/plc-2.0
Setting out to                           : /global/u1/f/fbianc/LensLike/plc-2.0/build
Checking for program 'icc, ICL'          : cc
Checking for program 'ar'                : /usr/bin/ar
Compile a test code with icc             : failed
No suitable c compiler found (cause: 'The configuration failed
(complete log in /global/u1/f/fbianc/LensLike/plc-2.0/build/config.log)')
The configuration failed
(complete log in /global/u1/f/fbianc/LensLike/plc-2.0/build/config.log)


Am I missing anything trivial?

Thanks again for your help!
~federico
Back to top
View user's profile   Visit poster's website
Karim Benabed



Joined: 18 Dec 2008
Posts: 8
Affiliation: Institut d'Astrophysique de Paris

PostPosted: January 18 2018  Reply with quote

Hum

I cannot reproduce your issue, and the changes I sent you allowed me to install and test plc on my nersc account.


Could you send me (benabed AT iap.fr) the file
/global/u1/f/fbianc/LensLike/plc−2.0/build/config.log
wich contains the details of the config script log ?

Thanks

a+
kb
Back to top
View user's profile  
Federico Bianchini



Joined: 25 Jun 2013
Posts: 9
Affiliation: University of Melbourne

PostPosted: January 19 2018  Reply with quote

Sure, I've sent you a mail with config.log file.

Thanks,
~federico
Back to top
View user's profile   Visit poster's website
Karim Benabed



Joined: 18 Dec 2008
Posts: 8
Affiliation: Institut d'Astrophysique de Paris

PostPosted: January 19 2018  Reply with quote

Thanks

It seems your environment sets the variable CC to cc.
The configure script honours that setting, and use cc instead of icc.
From the log file, cc seems not to accept the options used to compile with icc and fails to compile a simple hello world test program.
There is an issue with the plc configuration script that should then default to gcc and does not. The failure does not throw the same exceptions that it would throw if icc would have been absent and CC not set, and the "default to gcc" behaviour is thus not triggered. (note that it would also have failed with gcc as well, because of the broken cc)

You should check your environment variables and your rc files and remove the setting of the CC variable.
You can also run the configuration and installer this way
CC=icc ./waf configure –install_all_deps –lapack_mkl=$MKLROOT –icc –ifort
CC=icc ./waf install

Hope that solves your issue.

a+
kb
Back to top
View user's profile  
Federico Bianchini



Joined: 25 Jun 2013
Posts: 9
Affiliation: University of Melbourne

PostPosted: January 22 2018  Reply with quote

Oh, that explains a lot!

Just wanted to say that your suggested commands resulted in a successful compilation of the Planck likelihood.

Thanks again for your precious assistance.
~federico
Back to top
View user's profile   Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software All times are GMT + 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group. Sponsored by WordWeb online dictionary and dictionary software.