Michael Gutteridge
2012-08-01 00:16:02 UTC
Hi all
I have what I thought was a simple issue, but I can't seem to get it
sorted. We'd like to have job-specific working directories- basically have
TMPDIR=/some/path/${SLURM_JOB_ID} set for the user in batch or interactive
environments. Using use_env from the Spank collection works well, but
only for srun.
I thought I might be able to modify the use_env source slightly to run it
for sbatch as well, but it seems the functions available in the allocator
context (init and init_post_opt) don't have the slurm job ID available.
Total novice to writing things here- still working that angle. Does
context matter for those functions? Would init_post_opt game the job id if
run in the remote or allocator contexts only?
While I realize that we can configure $TMPDIR this way in the job script,
we would prefer to make sure this step doesn't get "forgotten" by our user
community. I have this nagging feeling I'm missing a very simple solution.
Thanks
Michael
I have what I thought was a simple issue, but I can't seem to get it
sorted. We'd like to have job-specific working directories- basically have
TMPDIR=/some/path/${SLURM_JOB_ID} set for the user in batch or interactive
environments. Using use_env from the Spank collection works well, but
only for srun.
I thought I might be able to modify the use_env source slightly to run it
for sbatch as well, but it seems the functions available in the allocator
context (init and init_post_opt) don't have the slurm job ID available.
Total novice to writing things here- still working that angle. Does
context matter for those functions? Would init_post_opt game the job id if
run in the remote or allocator contexts only?
While I realize that we can configure $TMPDIR this way in the job script,
we would prefer to make sure this step doesn't get "forgotten" by our user
community. I have this nagging feeling I'm missing a very simple solution.
Thanks
Michael
--
Hey! Somebody punched the foley guy!
- Crow, MST3K ep. 508
Hey! Somebody punched the foley guy!
- Crow, MST3K ep. 508