Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

From: Per Madsen (Per.Madsen_at_[hidden])
Date: 2007-07-26 01:48:54


I have found a solution to my problem with executing a MPI program from within a MPI program via a system call.

A related problem has been discussed in the thread: “Recursive use of orterun”.

The problem was the setup and export of environment variables.

I solved my problem by adding the following to the script starting the second MPI program:

    for i in $(env | grep OMPI_MCA |sed 's/=/ /' | awk '{print $1}')
       unset $i

This clear the environment for the child process for all variables with name starting with “OMPI_NCA”

Per Madsen
Senior scientist
Det Jordbrugsvidenskabelige Fakultet / Faculty of Agricultural Sciences
Forskningscenter Foulum / Research Centre Foulum
Genetik og Bioteknologi / Dept. of Genetics and Biotechnology
Blichers Allé 20, P.O. BOX 50
DK-8830 Tjele