[Wien] passing env variables to lapw1 and 2
Elias Assmann
elias.assmann at gmail.com
Tue Nov 10 18:40:03 CET 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 11/10/2015 03:49 PM, Luis Ogando wrote:
> What about to include them in the job submission script ?
The trouble with this is when processes on other nodes are started
with ssh. Then, the environment is not passed on (and the OP says the
option to do so is disabled on his cluster).
FWIW, I always put my settings in ~/.bashrc, but the suggestion with
‘parallel_options’ is certainly cleaner. Of course, if you need to
set a variable on a per-job basis for many jobs, it is still troublesome.
If you unset ‘mpi_remote’ during configuration, passing variables
through MPI should work for lapw{1,2} (as long as you are using MPI,
of course). But even so, some commands (the ones that do not have an
MPI version, I guess) are still run through ssh.
Elias
> 2015-11-10 12:32 GMT-02:00 Laurence Marks
> <L-marks at northwestern.edu <mailto:L-marks at northwestern.edu>>:
>
> A partial solution is to include them in
> $WIENROOT/parallel_options, as all the parallel routines source
> this file. You may be able to tweak this for what you want, but
> since I don't know exactly what you want to set I am not sure.
>
> N.B., if you are using openmpi then you have to enable transfer
> for variables in the mpi call command, and perhaps for other
> flavors as well.
>
> On Tue, Nov 10, 2015 at 8:25 AM, Pavel Ondracka
> <pavel.ondracka at email.cz <mailto:pavel.ondracka at email.cz>> wrote:
>
> Dear Wien2k mailing list,
>
> I'm having some troubles passing environmental variables (eg.
> OMP_NUM_THREADS or similar) to lapw1 and lapw2. This works in
> serial mode where the lapw* programs are called directly, however
> in parallel mode they are run through remote shell and all
> environmental info is lost. I can declare them in my .bashrc and
> then it works (since the .bashrc is reloaded when remote shell is
> spawned) however i would like to specify them per task. One
> solution I had in mind was to go through AcceptEnv in sshd however
> this is considered insecure according to cluster admins an is
> disabled. Another option is to modify the wien scripts to include
> the required variables when calling the remote shell, however at
> the moment I'm wondering if there is more universal and elegant
> solution? Any ideas?
>
> Best regards Pavel Ondračka
> _______________________________________________ Wien mailing list
> Wien at zeus.theochem.tuwien.ac.at
> <mailto:Wien at zeus.theochem.tuwien.ac.at>
> http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien SEARCH the
> MAILING-LIST at:
> http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html
>
>
>
>
>
> -- Professor Laurence Marks Department of Materials Science and
> Engineering Northwestern University www.numis.northwestern.edu
> <http://www.numis.northwestern.edu> Corrosion in 4D:
> MURI4D.numis.northwestern.edu
> <http://MURI4D.numis.northwestern.edu> Co-Editor, Acta Cryst A
> "Research is to see what everybody else has seen, and to think
> what nobody else has thought" Albert Szent-Gyorgi
>
> _______________________________________________ Wien mailing list
> Wien at zeus.theochem.tuwien.ac.at
> <mailto:Wien at zeus.theochem.tuwien.ac.at>
> http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien SEARCH the
> MAILING-LIST at:
> http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html
>
>
>
>
>
> _______________________________________________ Wien mailing list
> Wien at zeus.theochem.tuwien.ac.at
> http://zeus.theochem.tuwien.ac.at/mailman/listinfo/wien SEARCH the
> MAILING-LIST at:
> http://www.mail-archive.com/wien@zeus.theochem.tuwien.ac.at/index.html
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/
iQIcBAEBAgAGBQJWQivyAAoJEE/4gtQZfOqP8wcP/RQD5S+Nmceioc/9a5rxzAJG
woNNt7JWq7FZUnuIZFAu3TWKzcrMn7b4JEGjG48hjN4dGIM5RbNWPkXE/wGrNwep
s5dz1vnoqwPAsNdo1u/vk+AiyMTlbk7jqq9QUH3NTSphyp01GA5fazUPHqZWj7fY
HOHgb6juFJs8B5DreyQkW49QYXIfR1/GvtmOKAHR6DLLRjaU5H20LrSrOuqw5c25
XfD97n1hM0Md06W/lRSf98/22SnBtJwdZOmWudRPUZuStPO+dILCn95EZ/k0cUfa
PT0CIo1jpfo7hcxgW4HgRsmkxenxu7S29kDEIGr+CrQhAQ1wJChnuyWCgVtWOSu/
80sYbYDi7LEtHWoYWTC4CN6PsVbFxQQxT5kKvQXpBvt7P32waRI5dfzLzftX0DHU
jQZ/gkwpwmEddrbK4MuqDQRELltyEjIc/MG3mUQxYvYfmhNifMeohfMyov73sisj
DD4uJYGexaTweE/i8XZsHru6k4Z9wfBtTn4tdN6cGOUOcWhO44EKDPiHd9R4QoEP
1vcqAWgEpzOBY99zRu1OMwMmI469r7k5xCiZE5Hr1+0232rCm0PXuqCKJ0yWrc12
l1dHKQaW/S0Hxp18gIh90U158ggms/9FTjS5XsWmmogkzEvhY/9JWI9AuqYbQQIi
WFwPahxA2e63w1lL6g8h
=+JbL
-----END PGP SIGNATURE-----
More information about the Wien
mailing list