mpi installation for cosmomc

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Dhiraj Kumar Hazra
Posts: 17
Joined: March 31 2009
Affiliation: PCCP, APC, Paris

mpi installation for cosmomc

Post by Dhiraj Kumar Hazra » June 24 2009

Hello,
I have just started with cosmomc.Using opensuse 64 bit.The cfitsio and the likelihood_v3 are installed correctly.But I got stuck in the mpi case.


In the
cosmomc-powerlaw/source directory I have in the Makefile

Code: Select all

F90C    = ifort
FFLAGS = -O2 -Vaxlib -ip -W0 -WB -openmp -fpp -DMPI -vec_report0
LAPACKL = -L/opt/intel/mkl/10.1.3.027/lib/em64t -lmkl_lapack -lmkl -lguide -lpthread
The lapack is correctly installed.The mpich directory is in the /opt.While trying to make the utils.F90.It cant find the mpif.h.In utils.F90 file I changed the include line to

Code: Select all

include '/opt/mpich/include /mpif.h' 
It started to compile but as utils.F90 calls mpi_comm_rank and many mpi application I am getting error in those places.
How can I link the mpi so that it takes the whole directory and can call the subroutines in need.
thanks and regards
Dhiraj

Pascal Vaudrevange
Posts: 50
Joined: March 26 2006
Affiliation: DESY
Contact:

mpi installation for cosmomc

Post by Pascal Vaudrevange » June 24 2009

Hi Dhiraj,

you should change F90C to

Code: Select all

F90C = mpif90
Pascal

Post Reply