Skip to content
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

readd /dev/shm and rm SLURM_ARRAY_TASK_MIN check #130

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 2 additions & 11 deletions sequence_processing_pipeline/templates/nuqc_job.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,13 @@

echo "---------------"
echo "Run details:"
echo "$SLURM_JOB_NAME $SLURM_JOB_ID $SLURMD_NODENAME"
echo "$SLURM_JOB_NAME $SLURM_JOB_ID $SLURMD_NODENAME $SLURM_ARRAY_TASK_ID"
echo "---------------"

if [[ -z "${SLURM_ARRAY_TASK_ID}" ]]; then
echo "Not operating within an array"
exit 1
fi

if [[ "${SLURM_ARRAY_TASK_MIN}" -ne 1 ]]; then
echo "Min array ID is not 1"
exit 1
fi
if [[ -z ${MMI} ]]; then
echo "MMI is not set"
exit 1
Expand Down Expand Up @@ -56,11 +51,7 @@ fi
# DO NOT do this casually. Only do a clean up like this if
# you know for sure TMPDIR is what you want.

# we might got back to this TMPDIR once the slurm scheduler controls it
# TMPDIR=/dev/shm
# right now, let's use ${OUTPUT}, note that each worker will create a new tmp
# folder two lines below
TMPDIR=${OUTPUT}
TMPDIR=/dev/shm
charles-cowart marked this conversation as resolved.
Show resolved Hide resolved
export TMPDIR=${TMPDIR}
export TMPDIR=$(mktemp -d)
echo $TMPDIR
Expand Down
Loading