Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:28:25

0001 #! /bin/bash
0002 
0003 ## Use this script to turn auto debug printouts. Warning: debug statements are ifdef'ed and not maintained
0004 
0005 ## initialize
0006 source xeon_scripts/common-variables.sh
0007 source xeon_scripts/init-env.sh
0008 
0009 
0010 ## Common setup
0011 dir=/data2/slava77/samples/2021/
0012 subdir=10muPt0p2to10HS
0013 file=memoryFile.fv6.default.211008-c6b7c67.bin
0014 
0015 ## config for debug
0016 nevents=10
0017 maxth=1
0018 maxvu=1
0019 maxev=1
0020 
0021 ## base executable
0022 exe="./mkFit/mkFit --cmssw-n2seeds --num-thr ${maxth} --num-thr-ev ${maxev} --input-file ${dir}/${subdir}/${file} --num-events ${nevents}"
0023 
0024 ## Compile once
0025 mOpt="DEBUG:=1 WITH_ROOT:=1 USE_INTRINSICS:=-DMPT_SIZE=${maxvu} AVX_512:=1"
0026 make distclean ${mOpt}
0027 make -j 32 ${mOpt}
0028 
0029 ## test each build routine to be sure it works!
0030 for bV in "BH bh" "STD std" "CE ce"
0031 do echo ${bV} | while read -r bN bO
0032     do
0033         oBase=${val_arch}_${sample}_${bN}
0034         bExe="${exe} --build-${bO}"
0035 
0036         echo "${oBase}: ${vN} [nTH:${maxth}, nVU:${maxvu}, nEV:${maxev}]"
0037         ${bExe} >& log_${oBase}_NVU${maxvu}_NTH${maxth}_NEV${maxev}_"DEBUG".txt
0038     done
0039 done
0040 
0041 ## clean up
0042 make distclean ${mOpt}