# Populates $SCRATCH (and $WORK) if SLURM_JOB_ACCOUNT is set.
export SLURM_JOB_ACCOUNT=$ALLOCATION
module reset &> /dev/null

# Delta is now running Alma 9.
WELL_KNOWN_LOCATION_FOR_BINARIES=https://htcss-downloads.chtc.wisc.edu/tarball/25.x/25.6.1/release/condor-25.6.1-x86_64_AlmaLinux9-stripped.tar.gz

CONFIG_FRAGMENT() {
    echo '
        # Testing singularity sandboxes hangs right now (2024-03-28),
        # so only give the tests a few seconds to finish.
        SINGULARITY_TEST_SANDBOX_TIMEOUT = 5

        # Something in Delta has _very_ high latency -- probably a shared
        # filesystem -- and sometimes it takes 25 second to launch a
        # file-transfer plugin (that only takes 3 seconds to run the next
        # time, which is still rather slow).
        FILETRANSFER_PLUGIN_CLASSAD_TIMEOUT = 60
    '
}
SHELL_FRAGMENT() {
    : # This function intentionally left defined but blank.
}
SYSTEM_SPECIFIC_GPU_FLAG=--gpus-per-node

SBATCH_CONSTRAINT_LINE="#SBATCH --constraint=\"scratch\""
