[slurm-users] Reset TMPDIR for All Jobs

Roger Moye rmoye at quantlab.com
Tue May 12 16:12:15 UTC 2020


We had issues getting TMPDIR to work as well.  We finally did this in our prolog:

export SLURM_TMPDIR="/tmp/slurm/${SLURM_JOB_ID}"

This works.

-Roger


From: slurm-users <slurm-users-bounces at lists.schedmd.com> On Behalf Of Ellestad, Erik
Sent: Tuesday, May 12, 2020 10:40 AM
To: slurm-users at lists.schedmd.com
Subject: [slurm-users] Reset TMPDIR for All Jobs

I was wanted to set TMPDIR from /tmp to a per job directory I create in local /scratch/$SLURM_JOB_ID (for example)

This bug suggests I should be able to do this in a task-prolog.

https://bugs.schedmd.com/show_bug.cgi?id=2664

However adding the following to task-prolog doesn't seem to affect the variables the job script is running with.

unset TMPDIR
export TMPDIR=/scratch/$SLURM_JOB_ID

It does work if it is done in the job script, rather than the task-prolog.

Am I missing something?

Erik

--
Erik Ellestad
Wynton Cluster SysAdmin
UCSF

-----------------------------------------------------------------------------------

The information in this communication and any attachment is confidential and intended solely for the attention and use of the named addressee(s). All information and opinions expressed herein are subject to change without notice. This communication is not to be construed as an offer to sell or the solicitation of an offer to buy any security. Any such offer or solicitation can only be made by means of the delivery of a confidential private offering memorandum (which should be carefully reviewed for a complete description of investment strategies and risks). Any reliance one may place on the accuracy or validity of this information is at their own risk. Past performance is not necessarily indicative of the future results of an investment. All figures are estimated and unaudited unless otherwise noted. If you are not the intended recipient, or a person responsible for delivering this to the intended recipient, you are not authorized to and must not disclose, copy, distribute, or retain this message or any part of it. In this case, please notify the sender immediately at 713-333-5440
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20200512/820b6d3d/attachment-0001.htm>


More information about the slurm-users mailing list