Problems to generate the outputs chains files using mpi

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Omar Ruiz Macias
Posts: 10
Joined: February 15 2014
Affiliation: Cinvestav

Problems to generate the outputs chains files using mpi

Post by Omar Ruiz Macias » February 15 2014

Hi everyone,

I am having some troubles running cosmomc with several cores. It's supposed to generate one chain file (*.txt) for every used core, but when I call, for example, 8 cores (with mpirun or mpiexec), it only generates one output chain (*.txt) file. The thing is that all 8 cores show that they are working
I'm ussing "Intel(R) Fortran Compiler XE 14.0" and "Intel® C++ Composer XE"
to run paralel fortran with "mpiexec" and "openmpi" to run with "mpirun". With both compilers the problem is the same.

Have anyone else had the same problem?
I would really appreciate any help.

Jason Dossett
Posts: 97
Joined: March 19 2010
Affiliation: The University of Texas at Dallas
Contact:

Problems to generate the outputs chains files using mpi

Post by Jason Dossett » February 16 2014

Here are some things you could try:
  • Check your makefile make sure your compiler flags include -DMPI

    Make sure you are using the following command to run the executeable:

    Code: Select all

    mpiexec -n 8 ./cosmomc test.ini

Omar Ruiz Macias
Posts: 10
Joined: February 15 2014
Affiliation: Cinvestav

Problems to generate the outputs chains files using mpi

Post by Omar Ruiz Macias » February 17 2014

Thank you so much!, Jason Dossett.
Can believe I forget that.

Post Reply