OPEN MPI is not working for me

mshahbazm picture mshahbazm · Oct 4, 2014 · Viewed 11.4k times · Source

I have installed MPI and GCC seperatly using yum commands, And now when I use following command:

mpic++ first.c -o first

it says:

bash: mpic++: command not found

Can somebody please help me? I will be very thankful.

Background: I am using centos 6.5, and i am new on linux, however I have good understanding of terminal.

Answer

paugier picture paugier · Mar 2, 2015

Mpi environment is controlled by module in CentOS so you first have to load the mpi/openmpi-x86_64 module:

module load mpi/openmpi-x86_64