CosmoCoffee Forum Index CosmoCoffee

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

Error compiling Cosmomc (lmkl_intel_lp64)
 
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software
View previous topic :: View next topic  
Author Message
Mastache, Jorge



Joined: 16 Jun 2011
Posts: 6
Affiliation: MCTP

PostPosted: June 14 2017  Reply with quote

When I compile cosmomc I get the following error:
Code:

...
mpif90 -mkl -O3 -no-prec-div -fpp -qopenmp -xHost -DMPI -I../camb/ReleaseMPI  -module ReleaseMPI -IReleaseMPI/ -c CosmologyConfig.f90 -o ReleaseMPI/CosmologyConfig.o
mpif90 -mkl -O3 -no-prec-div -fpp -qopenmp -xHost -DMPI -I../camb/ReleaseMPI  -module ReleaseMPI -IReleaseMPI/ -c driver.F90 -o ReleaseMPI/driver.o
mpif90 -o ../cosmomc ReleaseMPI/MiscUtils.o ReleaseMPI/ArrayUtils.o ReleaseMPI/StringUtils.o ReleaseMPI/MpiUtils.o ReleaseMPI/FileUtils.o ReleaseMPI/RandUtils.o ReleaseMPI/ObjectLists.o ReleaseMPI/Interpolation.o ReleaseMPI/IniObjects.o ReleaseMPI/ObjectParamNames.o ReleaseMPI/Matrix_utils_new.o  ReleaseMPI/settings.o ReleaseMPI/samples.o ReleaseMPI/IO.o ReleaseMPI/likelihood.o ReleaseMPI/GeneralTypes.o ReleaseMPI/BaseParameters.o ReleaseMPI/propose.o ReleaseMPI/ParamSet.o ReleaseMPI/PowellConstrainedMinimize.o ReleaseMPI/ImportanceSampling.o ReleaseMPI/MCMC.o ReleaseMPI/minimize.o ReleaseMPI/SampleCollector.o ReleaseMPI/GeneralSetup.o ReleaseMPI/CosmologyTypes.o ReleaseMPI/CosmoTheory.o ReleaseMPI/bbn.o ReleaseMPI/Calculator_Cosmology.o ReleaseMPI/CalcLike_Cosmology.o ReleaseMPI/Likelihood_Cosmology.o ReleaseMPI/Calculator_CAMB.o ReleaseMPI/CMB_BK_Planck.o ReleaseMPI/mpk.o ReleaseMPI/wigglez.o ReleaseMPI/bao.o ReleaseMPI/supernovae_Union2.o ReleaseMPI/supernovae_SNLS.o ReleaseMPI/supernovae_JLA.o ReleaseMPI/szcounts.o ReleaseMPI/supernovae.o ReleaseMPI/HST.o  ReleaseMPI/CMB.o ReleaseMPI/CMBlikes.o ReleaseMPI/ElementAbundances.o ReleaseMPI/wl.o ReleaseMPI/CosmologyParameterizations.o ReleaseMPI/DataLikelihoods.o ReleaseMPI/calclike.o ReleaseMPI/CosmologyConfig.o ReleaseMPI/driver.o -L../camb/ReleaseMPI -lcamb_recfast     -mkl -O3 -no-prec-div -fpp -qopenmp -xHost -DMPI -I../camb/ReleaseMPI  -module ReleaseMPI -IReleaseMPI/
ld: warning: directory not found for option '-L:/opt/intel/mkl/lib'
ld: library not found for -lmkl_intel_lp64
make[1]: *** [cosmomc] Error 1
make: *** [cosmomc] Error 2


The error is because the link to the MKL library is not found, or the name of library is also wrong. Now, what is weird to me is that this directory /opt/intel/mkl/lib does exist, and it contains the files libmkl_intel_lp64.a, and libmkl_intel_lp64.dylib

It could be that just the name lmkl_intel_lp64 is wrong, I look for that name in all cosmomc's files but I have no results find it. I then look in plc's files and I change in [any_lapack.py] file the part called "mkl_options" from lmkl_intel_lp64 -> libmkl_intel_lp64. I re-compile plc which by the way, I successfully compiled plc, this means I have MKL installed. Though the error in cosmomc still persist.

Does anyone knows where does the error could came from? or how can I fix this?

Thanks in advance!
Jorge
Back to top
View user's profile  
Ira *Wolfson



Joined: 24 Jan 2013
Posts: 62
Affiliation: BGU

PostPosted: June 14 2017  Reply with quote

You have a problem with the -L option....

Its not -L:/...

Instead define

MKLPATH= /path/to/mkl

And in the L options:

-L$(MKLPATH) -lmkl_intel_lp64 ..... etc
Back to top
View user's profile [ Hidden ] 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.