Skip to content

Commit 73c5c07

Browse files
committed
Example script to run workflow with ML clusterizer
1 parent e62bcf9 commit 73c5c07

File tree

1 file changed

+68
-0
lines changed
  • MC/run/ANCHOR/tests/ML_clusterizer

1 file changed

+68
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#!/bin/bash
2+
3+
#JDL_OUTPUT=*.txt@disk=1,AO2D*.root@disk=2,*.log@disk=1,*stat*@disk=1,*.json@disk=1,debug*tgz@disk=2,tf*/coll*.root
4+
#JDL_ERROROUTPUT=*.txt@disk=1,AO2D*.root@disk=2,*.log@disk=1,*.json@disk=1,debug*tgz@disk=2
5+
#JDL_PACKAGE=O2PDPSuite::daily-20251215-0000-1
6+
7+
#
8+
# An **EXAMPLE** showing injection of GPU_proc_nn config_keys into the workflow creation, so
9+
# that TPC clusterizer runs with ML kernel.
10+
#
11+
12+
# example anchoring
13+
export ALIEN_JDL_LPMANCHORPASSNAME=apass4
14+
export ALIEN_JDL_MCANCHOR=apass4
15+
export ALIEN_JDL_CPULIMIT=8
16+
export ALIEN_JDL_LPMRUNNUMBER=544124
17+
export ALIEN_JDL_LPMPRODUCTIONTYPE=MC
18+
export ALIEN_JDL_LPMINTERACTIONTYPE=PbPb
19+
export ALIEN_JDL_LPMPRODUCTIONTAG=MLClusterTest
20+
export ALIEN_JDL_LPMANCHORRUN=544124
21+
export ALIEN_JDL_LPMANCHORPRODUCTION=LHC23zz
22+
export ALIEN_JDL_LPMANCHORYEAR=2023
23+
24+
export NTIMEFRAMES=1
25+
export PRODSPLIT=${ALIEN_O2DPG_GRIDSUBMIT_PRODSPLIT:-100}
26+
export SPLITID=${ALIEN_O2DPG_GRIDSUBMIT_SUBJOBID:-50}
27+
export CYCLE=0
28+
29+
# this file modifies few config key values for GPU_proc_nn for application in TPC clusterization
30+
LOCAL_CONFIG="customize_ml_clusterizing.json"
31+
cat > ${LOCAL_CONFIG} <<EOF
32+
{
33+
"ConfigParams": {
34+
"GPU_proc_nn" : {
35+
"nnInferenceDevice" : "CPU",
36+
"nnInferenceAllocateDevMem" : "0",
37+
"nnInferenceInputDType" : "FP16",
38+
"nnInferenceOutputDType" : "FP16",
39+
"nnSigmoidTrafoClassThreshold" : "1",
40+
"nnClusterizerAddIndexData" : "1",
41+
"nnInferenceIntraOpNumThreads" : "1",
42+
"nnInferenceInterOpNumThreads" : "1",
43+
"nnInferenceVerbosity" : "3",
44+
"nnClusterizerVerbosity" : "2",
45+
"nnClusterizerApplyCfDeconvolution" : "0",
46+
"nnLoadFromCCDB" : "1",
47+
"nnClusterizerBoundaryFillValue" : "0",
48+
"nnInferenceOrtProfiling" : "0",
49+
"nnClusterizerSetDeconvolutionFlags" : "1",
50+
"nnClusterizerSizeInputRow" : "1",
51+
"nnClusterizerSizeInputPad" : "4",
52+
"nnClusterizerSizeInputTime" : "4",
53+
"nnClassThreshold" : "0.05",
54+
"nnClusterizerUseCfRegression" : "0",
55+
"nnClusterizerBatchedMode" : "262144",
56+
"applyNNclusterizer" : "1"
57+
}
58+
}
59+
"Executables": {
60+
}
61+
}
62+
EOF
63+
64+
# we use pp event gen just to get faster results
65+
export ALIEN_JDL_ANCHOR_SIM_OPTIONS="-gen pythia8pp -confKey \"GeometryManagerParam.useParallelWorld=1;GeometryManagerParam.usePwGeoBVH=1;GeometryManagerParam.usePwCaching=1\" ${LOCAL_CONFIG:+--overwrite-config ${LOCAL_CONFIG}}"
66+
67+
export ALIEN_JDL_O2DPGWORKFLOWTARGET="tpcclus"
68+
${O2DPG_ROOT}/MC/run/ANCHOR/anchorMC.sh

0 commit comments

Comments
 (0)