CosmoMC: Compilation aborted

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Nouicer Khireddine
Posts: 2
Joined: January 13 2014
Affiliation: University of Jijel

CosmoMC: Compilation aborted

Post by Nouicer Khireddine » January 15 2014

Dear Users,

I just installed successfully Planck code and the data, but the compilation of Cosmomc 2013 stoped with the message:

ifort -mkl -openmp -O3 -xHost -no-prec-div -fpp -DSINGLE -DMATRIX_SINGLE -DCLIK -I../camb -I/home/nouicer/plc-1.0/include -I/home/nouicer/local/include -I/home/nouicer/wmap_likelihood_v5 -c CMB_Cls_simple.f90
CMB_Cls_simple.f90(507): error #6795: The target must be of the same type and kind type parameters as the pointer. [Z_OUTPUTS]
BackgroundOutputs%z_outputs => z_outputs
----------------------^
compilation aborted for CMB_Cls_simple.f90 (code 1)
make[1]: *** [CMB_Cls_simple.o] Erreur 1
make[1]: quittant le répertoire « /home/nouicer/cosmomc/source »
make: *** [all] Erreur 2


I tried to change the FFlags but without success, then I will be grateful if someone can provide a solution.

Nouicer

Antony Lewis
Posts: 1943
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: CosmoMC: Compilation aborted

Post by Antony Lewis » January 15 2014

Try compiling with the default double precision rather than single precision? The CAMB array is double and no doubt conflicts (and I haven't tested the single precision compilation recently).

Nouicer Khireddine
Posts: 2
Joined: January 13 2014
Affiliation: University of Jijel

CosmoMC: Compilation aborted

Post by Nouicer Khireddine » January 16 2014

Thank you very much,

I have compiled with the default double precision, and used the following configuration in the Makefile:

F90C = ifort
FFLAGS = -O2 -W0 -WB -openmp -fpp2 -vec_report0
MKLPATH= /opt/intel/composer_xe_2013_sp1.1.106/mkl/lib/intel64
#LAPACKL = -L/opt/intel/composer_xe_2013_sp1.1.106/mkl/lib/intel64 -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -lmkl_sequential
LAPACKL = -L$(MKLPATH) -lmkl_lapack95_lp64 -lmkl_intel_lp64 -lmkl_core -lmkl_intel_thread -lmkl_sequential

It works very well.

Nouicer

Gansukh Tumurtushaa
Posts: 34
Joined: October 05 2013
Affiliation: Sogang univ.

CosmoMC: Compilation aborted

Post by Gansukh Tumurtushaa » January 21 2014

I would suggest you to flag as follows

F90C = mpif90
FFLAGS = -f90=ifort ...........

it does work my case, I am not sure for your case(anyways please try with this), but I have another problem after running "make" and error message is here:

............
mpif90 -f90=ifort -mkl -openmp -O3 -xHost -no-prec-div -fpp -DMPI -DCLIK -I../camb -I/home/gansuh/Code/plc-1.0/include -DNOWMAP -c MCMC.f90
mpif90 -f90=ifort -mkl -openmp -O3 -xHost -no-prec-div -fpp -DMPI -DCLIK -I../camb -I/home/gansuh/Code/plc-1.0/include -DNOWMAP -c minimize.f90
mpif90 -f90=ifort -mkl -openmp -O3 -xHost -no-prec-div -fpp -DMPI -DCLIK -I../camb -I/home/gansuh/Code/plc-1.0/include -DNOWMAP -c driver.F90
mpif90 -o ../cosmomc ObjectLists.o ParamNames.o Matrix_utils.o Interpolation.o settings.o samples.o IO.o GeneralTypes.o cmbtypes.o Planck_like.o likelihood.o bbn.o cliklike.o power_spec.o wigglez.o mpk.o bao.o supernovae_Union2.o supernovae_SNLS.o supernovae.o HST.o CMB_Cls_simple.o cmbdata.o propose.o paramdef.o params_CMB.o DataLikelihoods.o calclike.o EstCovmat.o PowellConstrainedMinimize.o postprocess.o MCMC.o minimize.o driver.o -L../camb -lcamb_recfast -lmpi -L/home/gansuh/Code/plc-1.0/lib -lclik_f90 -f90=ifort -mkl -openmp -O3 -xHost -no-prec-div -fpp -DMPI -DCLIK -I../camb -I/home/gansuh/Code/plc-1.0/include -DNOWMAP
ld: cannot find -lmpi
make[1]: *** [cosmomc] Error 1
make[1]: Leaving directory `/home/gansuh/Code/cosmomc/source'
make: *** [all] Error 2

does anybody has/had experienced same problem as me?
or any suggestions on same on it?

Post Reply