Skip to content
Snippets Groups Projects
Verified Commit bee24347 authored by Renato Alves's avatar Renato Alves :seedling:
Browse files

ENH Enable slot reservation with SGE and multi-slot jobs

parent d286fb9e
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ ERROR="ERROR:"
NAME="Job"
LOGFILE="job.log"
CORES="1"
RESERVE=""
NODES="1"
MEM="4" # 4 GB by default
MEMALL="$MEM"
......@@ -181,7 +182,7 @@ sge_submit() {
cat << EOF | ${LOCALCMD}
#!/usr/bin/env bash
#$ -t ${JOB_COUNT}
#$ -pe smp ${CORES}
#$ -pe smp ${CORES}${RESERVE}
#$ -l h_vmem=${MEM}M${TARGET}
#$ -cwd
#$ -o ${LOGFILE}
......@@ -446,6 +447,7 @@ if [ "$SYSTEM" == "SGE" ]; then
[ "$WAITFOR" != "" ] && BANG_WAITFOR="#$ -hold_jid ${WAITFOR}"
[ "$BEGIN" != "" ] && BANG_BEGIN="#$ -a ${BEGIN}"
[ "$TARGET" != "" ] && TARGET=",h=${TARGET}"
[ "$CORES" -gt "1" ] && RESERVE=" -R y"
if [ "$EMAIL" != "" ]; then
BANG_EMAIL="#$ -M ${EMAIL}"
if [ "$EMAILWHEN" != "" ]; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment