Skip to content

Commit

Permalink
fix LSF submit options
Browse files Browse the repository at this point in the history
  • Loading branch information
skoren committed Jul 24, 2024
1 parent 17b2841 commit 5197a57
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/profiles/slurm-sge-submit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,15 @@ elif [ "x$lsf" != "x" ] ; then
if [ $mem_units = "GB" ] ; then
mem=${mem_gb}
elif [ $mem_units = "MB" ] ; then
mem=$(dc -e "3 k ${mem_gb} 1024 / p")
mem=$(dc -e "3 k ${mem_gb} 1024 * p")
else
mem=$(dc -e "3 k ${mem_gb} 1048576 / p")
mem=$(dc -e "3 k ${mem_gb} 1048576 * p")
fi

jobid=$(bsub -R span[hosts=1] -n ${n_cpus} -M ${mem} -oo batch-scripts/\$JOB_ID.${rule_n}.${jobidx}.out "$@")
jobid=$(bsub -R "span[hosts=1] rusage[mem=${mem}]" -n ${n_cpus} -oo batch-scripts/${jobid}.${rule_n}.${jobidx}.out "$@" | grep -oE "Job <[0-9]+>" | awk '{print $2}' | tr -d '<>')

echo > batch-scripts/${jobid}.${rule_n}.${jobidx}.submit \
bsub -R span[hosts=1] -n ${n_cpus} -M ${mem} -oo batch-scripts/${jobid}.${rule_n}.${jobidx}.out "$@"
bsub -R "span[hosts=1] rusage[mem=${mem}]" -n ${n_cpus} -oo batch-scripts/${jobid}.${rule_n}.${jobidx}.out "$@"

##########
#
Expand Down

0 comments on commit 5197a57

Please sign in to comment.