[slurm-users] Reset TMPDIR for All Jobs

Ellestad, Erik Erik.Ellestad at ucsf.edu
Tue May 12 17:27:22 UTC 2020

Which SLURM prolog specifically?

I'm not finding that to work for me in either task-prolog or prolog.

SLURM_TMPDIR and TMPDIR are still both set to /tmp when I run a job.


Erik Ellestad
Wynton Cluster SysAdmin

From: slurm-users <slurm-users-bounces at lists.schedmd.com> On Behalf Of Roger Moye
Sent: Tuesday, May 12, 2020 9:12 AM
To: Slurm User Community List <slurm-users at lists.schedmd.com>
Subject: Re: [slurm-users] Reset TMPDIR for All Jobs

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.


From: slurm-users <slurm-users-bounces at lists.schedmd.com<mailto: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<mailto: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.


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 Ellestad
Wynton Cluster SysAdmin


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/c4d6f2d2/attachment.htm>

More information about the slurm-users mailing list