Maybe too obvious, but have you checked your .bashrc, .bash_profile and such?

Brian Andrus

On 5/12/2020 10:27 AM, Ellestad, Erik wrote:

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

--

Erik Ellestad

Wynton Cluster SysAdmin

UCSF

*From:* slurm-users <slurm-users-boun...@lists.schedmd.com> *On Behalf Of *Roger Moye
*Sent:* Tuesday, May 12, 2020 9:12 AM
*To:* Slurm User Community List <slurm-users@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.

-Roger

*From:* slurm-users <slurm-users-boun...@lists.schedmd.com <mailto:slurm-users-boun...@lists.schedmd.com>> *On Behalf Of *Ellestad, Erik
*Sent:* Tuesday, May 12, 2020 10:40 AM
*To:* slurm-users@lists.schedmd.com <mailto:slurm-users@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 <https://urldefense.proofpoint.com/v2/url?u=https-3A__bugs.schedmd.com_show-5Fbug.cgi-3Fid-3D2664&d=DwMFAg&c=iORugZls2LlYyCAZRB3XLg&r=Ct3zEADMmPgyUYfpHDJQWaWsE9mNbEHEhGxpsYoThbE&m=xPdUh7dM0hithU9gkyVB8sI8GVpqet6rKWAGEAyuPa4&s=6Zv-scnpqWg7bREwPfLGi8FJE8BOCCurK4pMiw91P84&e=>

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

Reply via email to