Page 1 of 1

mpi installation for cosmomc

Posted: June 24 2009
by Dhiraj Kumar Hazra
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

mpi installation for cosmomc

Posted: June 24 2009
by Pascal Vaudrevange
Hi Dhiraj,

you should change F90C to

Code: Select all

F90C = mpif90
Pascal