Modifying slurm configuration
This commit is contained in:
parent
e7a6d56fa2
commit
9ef42c527d
3 changed files with 13 additions and 0 deletions
5
slurm/epilog.sh
Executable file
5
slurm/epilog.sh
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
#!/run/current-system/sw/bin/bash
|
||||
|
||||
# Delete the scratch directory for the job
|
||||
SCRATCH_DIR="/scratch/job-$SLURM_JOB_ID"
|
||||
rm -rf "$SCRATCH_DIR"
|
||||
8
slurm/prolog.sh
Executable file
8
slurm/prolog.sh
Executable file
|
|
@ -0,0 +1,8 @@
|
|||
#!/run/current-system/sw/bin/bash
|
||||
|
||||
# Create the scratch directory for the job
|
||||
SCRATCH_DIR="/scratch/job-$SLURM_JOB_ID"
|
||||
mkdir -p "$SCRATCH_DIR"
|
||||
|
||||
# Set the SCRATCH environment variable
|
||||
echo "export SCRATCH=$SCRATCH_DIR"
|
||||
Loading…
Add table
Add a link
Reference in a new issue