Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

Subject: Re: [OMPI users] problem with .bashrc stetting of openmpi
From: Eugene Loh (eugene.loh_at_[hidden])
Date: 2010-08-16 10:25:31 wrote: wrote:
Dear Open-mpi users,

I installed openmpi-1.4.1 in my user area and then set the path for
openmpi in the .bashrc file as follow. However, am still getting
error message whenever am starting the parallel molecular dynamics
simulation using GROMACS. So every time am starting the MD job, I need
source the .bashrc file again.
Have you set OPAL_PREFIX to /home/sunitap/soft/openmpi?
How to set OPAL_PREFIX?
During the installation of openmpi, I ran configure with
Did you mean this?
No.  The "OPAL_PREFIX" steps occurs after you configure, build, and install OMPI.  At the time that you run MPI programs, set the "OPAL_PREFIX" environment variable to /home/sunitap/soft/openmpi.  The syntax depends on your shell.  E.g., for csh:

setenv OPAL_PREFIX /home/sunitap/soft/openmpi

The sequence might be something like this:

./configure --prefix=/home/sunitap/soft/openmpi
make install
cd /home/sunitap/soft/openmpi/examples
mpicc connectivity_c.c
setenv OPAL_PREFIX /home/sunitap/soft/openmpi
mpirun -n 2 ./connectivity_c

though I didn't check all those commands out.