Modifying slurm configuration

This commit is contained in:
Ceferino Patino 2024-10-10 18:58:40 -05:00
commit 9ef42c527d
No known key found for this signature in database
3 changed files with 13 additions and 0 deletions

5
slurm/epilog.sh Executable file
View 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
View 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"