Skip to content

Commit

Permalink
Merge pull request #1 from VUmcCGP/SlurmQueueArg
Browse files Browse the repository at this point in the history
Generic/SLURM queue variable
  • Loading branch information
PeanutCoder authored Apr 11, 2017
2 parents c563222 + 98026ea commit 676c8c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion propr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,13 @@ getHoldIds() {
fi
done
fi

echo $HOLDFOR
}

# Stub values to work with
SCHEDULER='dry'
QUEUE='defq'
SGE_PE='singlenode'
DIR_NODES=$DIR_BASE/pipelines/
ARG_SUBBASE=""
Expand Down
5 changes: 3 additions & 2 deletions submit/slurm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ submit() {
then
SUBARGS="$SUBARGS -c $(($AVAL<$ARG_JOB_CPU_MAX?$AVAL:$ARG_JOB_CPU_MAX))"
fi

if [ $ANAME = "array" ]
then
SUBARGS="$SUBARGS -a ${AVAL//,/:}"
Expand All @@ -27,14 +27,15 @@ submit() {

# Submit to SLURM
JOBID=`sbatch \
--partition ${QUEUE} \
$HOLDFOR \
-J $JOB_NAME \
-e $FILE_LOG_ERR \
-o $FILE_LOG_OUT \
$SUBARGS \
$NODE \
$ADDS`

# Fix the JobID
JOBID=`echo $JOBID | cut -d\ -f4`
}

0 comments on commit 676c8c4

Please sign in to comment.