Skip to content

Commit d5bd52f

Browse files
committed
Use TBB_NUM_THREADS in addition to OMP_NUM_THREADS
Suggested by David Rohr. Hoping to fix a rare crash in trdreco2. Seems to work better indeed in local tests.
1 parent ef2c1d7 commit d5bd52f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MC/bin/o2dpg_sim_workflow.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ def getDigiTaskName(det):
11431143
tpcclussect = createTask(name=taskname, needs=tpcclusterneed, tf=tf, cwd=timeframeworkdir, lab=["RECO"], cpu='2', mem='8000')
11441144
digitmergerstr = '${O2_ROOT}/bin/o2-tpc-chunkeddigit-merger --tpc-sectors ' + str(s)+'-'+str(s+sectorpertask-1) + ' --tpc-lanes ' + str(NWORKERS_TF) + ' | '
11451145
tpcclussect['cmd'] = (digitmergerstr,'')[args.no_tpc_digitchunking] + ' ${O2_ROOT}/bin/o2-tpc-reco-workflow ' + getDPL_global_options(bigshm=True) + ' --input-type ' + ('digitizer','digits')[args.no_tpc_digitchunking] + ' --output-type clusters,send-clusters-per-sector --tpc-native-cluster-writer \" --outfile tpc-native-clusters-part'+ str((int)(s/sectorpertask)) + '.root\" --tpc-sectors ' + str(s)+'-'+str(s+sectorpertask-1) + ' ' + putConfigValues(["GPU_global"], {"GPU_proc.ompThreads" : 4}) + ('',' --disable-mc')[args.no_mc_labels]
1146-
tpcclussect['env'] = { "OMP_NUM_THREADS" : "4" }
1146+
tpcclussect['env'] = { "OMP_NUM_THREADS" : "4" , "TBB_NUM_THREADS" : "4" }
11471147
tpcclussect['semaphore'] = "tpctriggers.root"
11481148
tpcclussect['retry_count'] = 2 # the task has a race condition --> makes sense to retry
11491149
workflow['stages'].append(tpcclussect)

0 commit comments

Comments
 (0)