@@ -515,7 +515,8 @@ to a file and have `clustermq.template` point to it.
515515#$ -bstrategy packed # *Pack* cores on a host to share NUMA nodes and caches
516516#$ -btype host # Bind per host
517517#$ -binstance set # Use HWLOC to bind cores
518- #$ -l mem_free={{ memory | 1073741824 }},h_rt={{ walltime | 3600 }},q=all.q # Resource requests and limits
518+ ## Resource requests and limits (convert memory from Mb to bytes)
519+ #$ -l mem_free=$(( 1024 * 1024 * {{ memory | 4096 }} )),h_rt={{ walltime | 3600 }},q=all.q
519520#$ -ac application=clustermq,hostname={{ master }} # Tag the job
520521
521522ulimit -v $(( 1024 * {{ memory | 4096 }} ))
@@ -569,7 +570,8 @@ to a file and have `clustermq.template` point to it.
569570#$ -pe mytestpe {{ cores | 1 }} # Allocate one slot per task
570571#$ -bunit C # Allocate *power core(s)* per slot
571572#$ -bamount {{ threads | 1 }} # Allocate *one* power core per slot
572- #$ -l mem_free={{ memory | 1073741824 }},h_rt={{ walltime | 3600 }},q=all.q # Resource requests and limits
573+ ## Resource requests and limits (convert memory from Mb to bytes)
574+ #$ -l mem_free=$(( 1024 * 1024 * {{ memory | 4096 }} )),h_rt={{ walltime | 3600 }},q=all.q
573575#$ -ac application=clustermq,hostname={{ master }} # Tag the job
574576
575577ulimit -v $(( 1024 * {{ memory | 4096 }} ))
0 commit comments