Re: [OMPI users] an environment variable with same meaning than the -x option of mpiexec
On Nov 10, 2009, at 2:48 AM, Paul Kapinos wrote: Hi Ralph, Not at the moment - though I imagine we could create one. It is a tad tricky in that we allow multiple -x options on the cmd line, but we obviously can't do that with an envar. why not? export OMPI_Magic_Variavle="-x LD_LIBRARY_PATH -x PATH" cold be possible, or not? That is basically what I had in mind, but it now requires that we parse it. My point was that you can't do export OMPI_dash_x="foo" export OMPI_dash_x="bar" like you would do on the cmd line itself, so now there has to be a special parser for handling the envar separate from the cmd line entry. Not a big deal - just takes some code...which is why it isn't an immediate response. I can add it to the "to-do" list for a rainy day :-) That would be great :-) Thanks for your help! Paul Kapinos with the -x option of mpiexec there is a way to distribute environmnet variables: -x Export the specified environment variables to the remote nodes before executing the program. Is there an environment variable ( OMPI_) with the same meaning? The writing of environmnet variables on the command line is ugly and tedious... I've searched for this info on OpenMPI web pages for about an hour and didn't find the ansver :-/ Thanking you in anticipation, Paul -- Dipl.-Inform. Paul Kapinos - High Performance Computing, RWTH Aachen University, Center for Computing and Communication Seffenter Weg 23, D 52074 Aachen (Germany) Tel: +49 241/80-24915 ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users -- Dipl.-Inform. Paul Kapinos - High Performance Computing, RWTH Aachen University, Center for Computing and Communication Seffenter Weg 23, D 52074 Aachen (Germany) Tel: +49 241/80-24915 ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users
Re: [OMPI users] an environment variable with same meaning than the-x option of mpiexec
Hi Jeff, FWIW, environment variables prefixed with "OMPI_" will automatically be distributed out to processes. Of course, but saddingly the variable(s) we want to ditribute aren't "OMPI_" variable. Depending on your environment and launcher, your entire environment may be copied out to all the processes, anyway (rsh does not, but environments like SLURM do), making the OMPI_* and -x mechanisms somewhat redundant. Does this help? By now I specified the $MPIEXEC variable to "mpiexec -x BLABLABLA" and advice the users to use this. This is a bit ugly, but working workaround. What i wanted to achieve with my mail, was a less ugly solution :o) Thanks for your help, Paul Kapinos Not at the moment - though I imagine we could create one. It is a tad tricky in that we allow multiple -x options on the cmd line, but we obviously can't do that with an envar. The most likely solution would be to specify multiple "-x" equivalents by separating them with a comma in the envar. It would take some parsing to make it all work, but not impossible. I can add it to the "to-do" list for a rainy day :-) On Nov 6, 2009, at 7:59 AM, Paul Kapinos wrote: > Dear OpenMPI developer, > > with the -x option of mpiexec there is a way to distribute > environmnet variables: > > -x Export the specified environment variables to the > remote > nodes before executing the program. > > > Is there an environment variable ( OMPI_) with the same meaning? > The writing of environmnet variables on the command line is ugly and > tedious... > > I've searched for this info on OpenMPI web pages for about an hour > and didn't find the ansver :-/ > > > Thanking you in anticipation, > > Paul > > > > > -- > Dipl.-Inform. Paul Kapinos - High Performance Computing, > RWTH Aachen University, Center for Computing and Communication > Seffenter Weg 23, D 52074 Aachen (Germany) > Tel: +49 241/80-24915 > ___ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users -- Dipl.-Inform. Paul Kapinos - High Performance Computing, RWTH Aachen University, Center for Computing and Communication Seffenter Weg 23, D 52074 Aachen (Germany) Tel: +49 241/80-24915 smime.p7s Description: S/MIME Cryptographic Signature
Re: [OMPI users] an environment variable with same meaning than the -x option of mpiexec
Hi Ralph, Not at the moment - though I imagine we could create one. It is a tad tricky in that we allow multiple -x options on the cmd line, but we obviously can't do that with an envar. why not? export OMPI_Magic_Variavle="-x LD_LIBRARY_PATH -x PATH" cold be possible, or not? I can add it to the "to-do" list for a rainy day :-) That would be great :-) Thanks for your help! Paul Kapinos with the -x option of mpiexec there is a way to distribute environmnet variables: -x Export the specified environment variables to the remote nodes before executing the program. Is there an environment variable ( OMPI_) with the same meaning? The writing of environmnet variables on the command line is ugly and tedious... I've searched for this info on OpenMPI web pages for about an hour and didn't find the ansver :-/ Thanking you in anticipation, Paul -- Dipl.-Inform. Paul Kapinos - High Performance Computing, RWTH Aachen University, Center for Computing and Communication Seffenter Weg 23, D 52074 Aachen (Germany) Tel: +49 241/80-24915 ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users -- Dipl.-Inform. Paul Kapinos - High Performance Computing, RWTH Aachen University, Center for Computing and Communication Seffenter Weg 23, D 52074 Aachen (Germany) Tel: +49 241/80-24915 smime.p7s Description: S/MIME Cryptographic Signature
Re: [OMPI users] an environment variable with same meaning than the-x option of mpiexec
FWIW, environment variables prefixed with "OMPI_" will automatically be distributed out to processes. From mpirun(1): Exported Environment Variables All environment variables that are named in the form OMPI_* will auto- matically be exported to new processes on the local and remote nodes. The -x option to mpirun can be used to export specific environment variables to the new processes. While the syntax of the - x option allows the definition of new variables, note that the parser for this option is currently not very sophisticated - it does not even under- stand quoted values. Users are advised to set variables in the envi- ronment and use -x to export them; not to define them. Depending on your environment and launcher, your entire environment may be copied out to all the processes, anyway (rsh does not, but environments like SLURM do), making the OMPI_* and -x mechanisms somewhat redundant. Does this help? On Nov 6, 2009, at 9:59 PM, Ralph Castain wrote: Not at the moment - though I imagine we could create one. It is a tad tricky in that we allow multiple -x options on the cmd line, but we obviously can't do that with an envar. The most likely solution would be to specify multiple "-x" equivalents by separating them with a comma in the envar. It would take some parsing to make it all work, but not impossible. I can add it to the "to-do" list for a rainy day :-) On Nov 6, 2009, at 7:59 AM, Paul Kapinos wrote: > Dear OpenMPI developer, > > with the -x option of mpiexec there is a way to distribute > environmnet variables: > > -x Export the specified environment variables to the > remote > nodes before executing the program. > > > Is there an environment variable ( OMPI_) with the same meaning? > The writing of environmnet variables on the command line is ugly and > tedious... > > I've searched for this info on OpenMPI web pages for about an hour > and didn't find the ansver :-/ > > > Thanking you in anticipation, > > Paul > > > > > -- > Dipl.-Inform. Paul Kapinos - High Performance Computing, > RWTH Aachen University, Center for Computing and Communication > Seffenter Weg 23, D 52074 Aachen (Germany) > Tel: +49 241/80-24915 > ___ > users mailing list > us...@open-mpi.org > http://www.open-mpi.org/mailman/listinfo.cgi/users ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users -- Jeff Squyres jsquy...@cisco.com
Re: [OMPI users] an environment variable with same meaning than the -x option of mpiexec
Not at the moment - though I imagine we could create one. It is a tad tricky in that we allow multiple -x options on the cmd line, but we obviously can't do that with an envar. The most likely solution would be to specify multiple "-x" equivalents by separating them with a comma in the envar. It would take some parsing to make it all work, but not impossible. I can add it to the "to-do" list for a rainy day :-) On Nov 6, 2009, at 7:59 AM, Paul Kapinos wrote: Dear OpenMPI developer, with the -x option of mpiexec there is a way to distribute environmnet variables: -x Export the specified environment variables to the remote nodes before executing the program. Is there an environment variable ( OMPI_) with the same meaning? The writing of environmnet variables on the command line is ugly and tedious... I've searched for this info on OpenMPI web pages for about an hour and didn't find the ansver :-/ Thanking you in anticipation, Paul -- Dipl.-Inform. Paul Kapinos - High Performance Computing, RWTH Aachen University, Center for Computing and Communication Seffenter Weg 23, D 52074 Aachen (Germany) Tel: +49 241/80-24915 ___ users mailing list us...@open-mpi.org http://www.open-mpi.org/mailman/listinfo.cgi/users
[OMPI users] an environment variable with same meaning than the -x option of mpiexec
Dear OpenMPI developer, with the -x option of mpiexec there is a way to distribute environmnet variables: -x Export the specified environment variables to the remote nodes before executing the program. Is there an environment variable ( OMPI_) with the same meaning? The writing of environmnet variables on the command line is ugly and tedious... I've searched for this info on OpenMPI web pages for about an hour and didn't find the ansver :-/ Thanking you in anticipation, Paul -- Dipl.-Inform. Paul Kapinos - High Performance Computing, RWTH Aachen University, Center for Computing and Communication Seffenter Weg 23, D 52074 Aachen (Germany) Tel: +49 241/80-24915 smime.p7s Description: S/MIME Cryptographic Signature