-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change LOCAL_SCRATCH from /tmp/scratch/$USER to /tmp/scratch/$JOBID #449
Conversation
Minimum allowed coverage is Generated by 🐒 cobertura-action against a3a27b0 |
buildstockbatch/kestrel.sh
Outdated
@@ -15,7 +15,7 @@ source "$MY_PYTHON_ENV/bin/activate" | |||
# Default LOCAL_SCRATCH = /tmp/scratch | |||
# Setting to user-specific dir to avoid | |||
# issues with deleting previous buildstock run debris | |||
export LOCAL_SCRATCH=/tmp/scratch/$USER | |||
export LOCAL_SCRATCH=/tmp/scratch/$SLURM_JOB_ID |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you should use $TMPDIR variable as suggested:
export LOCAL_SCRATCH=$TMPDIR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changed it to export LOCAL_SCRATCH=$TMPDIR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is following the directions here:
https://nrel.github.io/HPC/Documentation/Systems/Kestrel/filesystems/#node-file-system
Due to the change in the node local scratch configuration, to write to local disk, we now need to use the $TMPDIR variable. https://nrel.github.io/HPC/Documentation/Systems/Kestrel/kestrel_release_notes/