[gridengine users] export of environment variables from start_proc_args
Mark Dixon
m.c.dixon at leeds.ac.uk
Thu Jul 5 12:58:11 UTC 2012
On Thu, 5 Jul 2012, SLIM H.A. wrote:
> Thanks Reuti,
>
>> You could provide a startup_method for the queue(s) in question:
>>
>> #!/bin/sh
>> export OMP_NUM_THREADS=$NSLOTS
>> exec "$@"
>
> "@$" would expand to the startup_method arguments but these are absent?
> The documentation about the starter_method is not clear to me, are the
> "job arguments" the command_args to command in qsub?
Hi Henk,
Documentation-wise, there's a bit under "starter_method" in the queue_conf
manual page. I'm sure there's other good stuff that people can direct you
to.
However, in my usual "suck-it-and-see" approach, if you stick an echo "$@"
line in the starter method, you'll see how it's getting called in your job
output files.
My 2 pence... I generally have better luck with using eval instead of exec
- I've seen a multitude of sins being passed through to my starter_method,
generally when qrsh gets involved (e.g. tightly-integrated parallel jobs),
which generally get coped with better that way.
Mark
--
-----------------------------------------------------------------
Mark Dixon Email : m.c.dixon at leeds.ac.uk
HPC/Grid Systems Support Tel (int): 35429
Information Systems Services Tel (ext): +44(0)113 343 5429
University of Leeds, LS2 9JT, UK
-----------------------------------------------------------------
More information about the users
mailing list