Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2022-02-21 23:14:25

0001 #! /bin/bash
0002 
0003 [ -e "$BIN_DATA_PATH" ] || BIN_DATA_PATH=/data2/slava77/samples/2021/11834.0_TTbar_14TeV+2021/
0004 fin=${BIN_DATA_PATH}/AVE_70_BX01_25ns/memoryFile.fv6.default.211008-c6b7c67.bin
0005 
0006 runBenchmark()
0007 {
0008 #    for sV in "sim --cmssw-simseeds" "see --cmssw-stdseeds"; do echo $sV | while read -r sN sO; do
0009     for sV in "see --cmssw-stdseeds"; do echo $sV | while read -r sN sO; do
0010             if [ "${1}" == "1" ]; then
0011                 sO="--cmssw-n2seeds"
0012             fi
0013             for bV in "BH bh" "STD std" "CE ce"; do echo $bV | while read -r bN bO; do
0014                     oBase=${base}_${sN}_${bN}
0015                     for nTH in 1 4 8 16 32; do
0016                         echo "${oBase}: benchmark [nTH:${nTH}, nVU:8]"
0017                         time ./mkFit/mkFit --input-file ${fin} --build-${bO} ${sO} --num-thr ${nTH} >& log_${oBase}_NVU8int_NTH${nTH}_benchmark.txt
0018                     done
0019                 done
0020             done
0021         done
0022     done
0023 }
0024 
0025 #cleanup first
0026 make clean
0027 make distclean
0028 
0029 make -j 12
0030 export base=SNB_CMSSW_PU70_clean
0031 echo Run default build with base = ${base}
0032 runBenchmark 0
0033 
0034 export base=SNB_CMSSW_PU70_clean_cleanSeed
0035 echo Run CLEAN_SEEDS build with base = ${base}
0036 runBenchmark 1
0037 make clean
0038 make distclean
0039 
0040 
0041 make -j 12 CPPUSERFLAGS+="-march=native -mtune=native" CXXUSERFLAGS+="-march=native -mtune=native"
0042 export base=SNB_CMSSW_PU70_clean_native
0043 echo Run native build with base = ${base}
0044 runBenchmark 0
0045 
0046 export base=SNB_CMSSW_PU70_clean_native_cleanSeed
0047 echo Run CLEAN_SEEDS build with base = ${base}
0048 runBenchmark 1
0049 make clean
0050 make distclean
0051 
0052 fin10mu=/data2/slava77/samples/2021/10muPt0p2to10HS/memoryFile.fv6.default.211008-c6b7c67.bin
0053 
0054 runBenchmark10mu()
0055 {
0056     for sV in "sim --cmssw-seeds" "see --cmssw-stdseeds"; do echo $sV | while read -r sN sO; do
0057             if [ "${1}" == "1" ]; then
0058                 sO="--cmssw-n2seeds"
0059             fi
0060             for bV in "BH bh" "STD std" "CE ce"; do echo $bV | while read -r bN bO; do
0061                     oBase=${base}_${sN}_10muPt0p2to10HS_${bN}
0062                     nTH=8
0063                     echo "${oBase}: benchmark [nTH:${nTH}, nVU:8]"
0064                     time ./mkFit/mkFit --input-file ${fin10mu} --build-${bO} ${sO} --num-thr ${nTH} >& log_${oBase}_NVU8int_NTH${nTH}_benchmark.txt
0065                 done
0066             done
0067         done
0068     done
0069 
0070 }
0071 
0072 #this part has a pretty limited value due to the tiny load in the muon samples
0073 make -j 12
0074 export base=SNB_CMSSW_10mu
0075 echo Run default build with base = ${base}
0076 runBenchmark10mu 1
0077 
0078 make clean
0079 make distclean
0080 
0081 
0082 unset base
0083