Sorry Saurabh; all of us are caught up in preparing for the Supercomputing trade show next week. We've been delayed in replying to list email. :-(
We actually take the opposite approach than MPICH: nothing is exported to remote processes by default except for internal Open MPI env variables. The -x option is provided as a way to selectively export env vars if you want them. We went this way because many run time systems already export environments for you to the remote processes, and sometimes they even selectively edit the environment (e.g., some env vars will have different values for different MPI processes). We didn't want Open MPI to override that behavior. ssh, of course, doesn't export things for you automatically. But there are some options in ssh to automatically forward environment variables, if you want to go that route. Hope that helps. > On Nov 13, 2015, at 2:56 PM, Saurabh T <saur...@hotmail.com> wrote: > > I'd appreciate a response, even a simple no if this is not possible. Thank > you. > saurabh > > > > From: saur...@hotmail.com > > To: us...@open-mpi.org > > Subject: RE: Propagate current shell's environment > > Date: Mon, 9 Nov 2015 11:45:07 -0500 > > > > I meant different from the current shell, not different for different > > processes, sorry. > > Also I am aware of -x but it's not the right solution in this case because > > (a) it's manual (b) it appears that anything set in bashrc that was unset > > in the shell would be set for the program which I do not want. > > > > ---------------------------------------- > > > From: saur...@hotmail.com > > > To: us...@open-mpi.org > > > Subject: Propagate current shell's environment > > > Date: Mon, 9 Nov 2015 11:40:13 -0500 > > > > > > Hi, > > > > > > Is there any way with OpenMPI to propagate the current shell's > > > environment to the parallel program? I am looking for an equivalent way > > > to how MPICH handles environment variables > > > (https://wiki.mpich.org/mpich/index.php/Frequently_Asked_Questions#Q:_How_do_I_pass_environment_variables_to_the_processes_of_my_parallel_program_when_using_the_mpd.2C_hydra_or_gforker_process_manager.3F): > > > > > >> By default, all the environment variables in the shell where mpiexec is > > > run are passed to all processes of the application program. > > > > > > OpenMPI has the parallel processes read bashrc so the environment can be > > > different for different processes, which is exactly what I want to avoid. > > > I could not find any way of doing this in orterun --help or on the forums. > > > > > > Thank you. > > > > > > saurabh > > > > > > This email has been sent from a virus-free computer protected by Avast. > www.avast.com > _______________________________________________ > users mailing list > us...@open-mpi.org > Subscription: http://www.open-mpi.org/mailman/listinfo.cgi/users > Link to this post: > http://www.open-mpi.org/community/lists/users/2015/11/28037.php -- Jeff Squyres jsquy...@cisco.com For corporate legal information go to: http://www.cisco.com/web/about/doing_business/legal/cri/