My cosmomc compiling recipe

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Rhys Morris
Posts: 1
Joined: November 05 2013
Affiliation: University of Bristol

My cosmomc compiling recipe

Post by Rhys Morris » November 05 2013

In case this is useful to anyone, this is how I compile cosmomc at Bristol Astrophysics Group. Our machines mostly run Scientific Linux 6 (a clone of RedHat EL6) and we have the ifort 13 compiler on an academic license, which I just upgraded to version 14.0.1 last week.


cd /data/cygnus1/nina/rhys_cosmomc_nov2013/
tar xzvf ~/Downloads/cosmomc.tat.gz

# Initialise compiler
source /usr/local/intel/composer_xe_2013_sp1.1.106/bin/compilervars.csh intel64
setenv INTEL_LICENSE_FILE /usr/local/intel/licenses/<insert your license file here>

cd source/
cp Makefile Makefile.orig
emacs -nw Makefile

change all references to -lmpi to -lmkl_gf_ilp64 -lmkl_core -lmkl_intel_thread
cd ..
env FC=imfort MPICH_F90=ifort make

and it builds cosmomc.

I hope this may be usefule to someone, please also let me know if there are any problems with what I do!

Regards,
Rhys

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

My cosmomc compiling recipe

Post by Gansukh Tumurtushaa » January 21 2014

Hello?

Could you explain more details on what reason we do need to change the lmpi as a new form/line?

I mean I had a "can not find lmpi"problem when I run make clean and then make. After I did change as you suggested, the problem is solved. So that I would like to know the meaning of the change.

Could you, please, explain more detail?
Thank you.

-Gansukh

Post Reply