[mvapich-discuss] mpirun won't pass environment variables?

Jonathan Perkins perkinjo at cse.ohio-state.edu
Thu Apr 14 19:00:44 EDT 2011


Please try using mpirun_rsh instead of mpirun.

You can find more information on this at:
http://mvapich.cse.ohio-state.edu/support/mvapich_user_guide-1.2rc1.html#x1-180005.2

On Thu, Apr 14, 2011 at 6:08 PM, James R. Leek <leek2 at llnl.gov> wrote:
>
> I'm using my own mvapich-1.2rc1 installation on a machine running PBSPro.
>  (I had to build mvapich myself because the supported MPI on the system is
> OpenMPI, which does not support launching an MPI job from an MPI job.)
>
> My program needs to check some environment variables to run correctly, but
> mpirun is not passing on any environment variables.  For example, I have a
> program that uses getenv to check the environment for "COOP_name", then
> prints it out.
>
> --------------------
> [leek2 mpitest]$ export COOP_name=foo
> [leek2 mpitest]$ mpirun mpi-helloworld
> COOP_name: (null)
> --------------------
>
> COOP_name didn't make it into the environment of the child process.  The
> user guide tells me this should work:
>
> -----------------
> [leek2 at m0069 mpitest]$ mpirun COOP_name=hey mpi-helloworld
> which: no COOP_name=hey in ($PATH)
> Unrecognized argument: COOP_name=hey
> If this is an executable, perhaps you need to list the full path.
> ----------------------
>
> but obviously it doesn't.
>
> Does anyone know how to get mpirun to pass on the environment variables?
>
> --
> Jim Leek
> leek2 at llnl.gov
>
> _______________________________________________
> mvapich-discuss mailing list
> mvapich-discuss at cse.ohio-state.edu
> http://mail.cse.ohio-state.edu/mailman/listinfo/mvapich-discuss
>
>



-- 
Jonathan Perkins
http://www.cse.ohio-state.edu/~perkinjo



More information about the mvapich-discuss mailing list