Skip to content

Commit 0cf2b9f

Browse files
committed
Specify CPUCores JDL flag
1 parent 5ea9b1d commit 0cf2b9f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

GRID/utils/grid_submit.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ ONGRID=0
177177

178178

179179
JOBTTL=82000
180+
CPUCORES=8
180181
# this tells us to continue an existing job --> in this case we don't create a new workdir
181182
while [ $# -gt 0 ] ; do
182183
case $1 in
@@ -187,6 +188,7 @@ while [ $# -gt 0 ] ; do
187188
--topworkdir) ALIEN_TOPWORKDIR=$2; shift 2 ;; # the top workdir relative to GRID home
188189
--ttl) JOBTTL=$2; shift 2 ;; # allows to specifiy ttl for job
189190
--partition) GRIDPARTITION=$2; shift 2 ;; # allows to specificy a GRID partition for the job
191+
--cores) CPUCORES=$2; shift 2 ;; # allow to specify the CPU cores (check compatibility with partition !)
190192
--dry) DRYRUN="ON"; shift 1 ;; # do a try run and not actually interact with the GRID (just produce local jdl file)
191193
--o2tag) O2TAG=$2; shift 2 ;; #
192194
--asuser) ASUSER=$2; shift 2 ;; #
@@ -278,6 +280,7 @@ Output = {
278280
${PRODSPLIT:+Split = ${QUOT}production:1-${PRODSPLIT}${QUOT};}
279281
OutputDir = "${MY_JOBWORKDIR}/${PRODSPLIT:+#alien_counter_03i#}";
280282
Requirements = member(other.GridPartitions,"${GRIDPARTITION:-multicore_8}");
283+
CPUCores = "${CPUCORES}";
281284
MemorySize = "60GB";
282285
TTL=${JOBTTL};
283286
EOF

0 commit comments

Comments
 (0)