Skip to content

Commit

Permalink
Run the profiling on the IB before running on the IB+PR
Browse files Browse the repository at this point in the history
  • Loading branch information
gartung committed Nov 6, 2024
1 parent 8261056 commit 83f7db4
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions pr_testing/run-pr-profiling.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,18 @@ for PROFILING_WORKFLOW in $WORKFLOWS;do
export LOCALRT=${WORKSPACE}/${CMSSW_VERSION}
PROF_RES="OK"
export PROFILING_WORKFLOW
mkdir -p $WORKSPACE/IB
pushd $WORKSPACE/IB
$WORKSPACE/profiling/Gen_tool/Gen.sh $CMSSW_VERSION || true
get_jenkins_artifacts profiling/${CMSSW_VERSION}/${SCRAM_ARCH}/${PROFILING_WORKFLOW}/step2.root $WORKSPACE/$CMSSW_VERSION/$PROFILING_WORKFLOW/step2.root || true
RUNALLSTEPS=1
$WORKSPACE/profiling/Gen_tool/runall.sh $CMSSW_VERSION || true
unset RUNALLSTEPS
popd
$WORKSPACE/profiling/Gen_tool/Gen.sh $CMSSW_VERSION || true
cp -v $WORKSPACE/IB/$CMSSW_VERSION/$PROFILING_WORKFLOW/step2.root $WORKSPACE/$CMSSW_VERSION/$PROFILING_WORKFLOW || true
for f in $(find $WORKSPACE/IB/$CMSSW_VERSION/$PROFILING_WORKFLOW -name step*.json);do
b=$(basename $f)
cp -v $f $WORKSPACE/$CMSSW_VERSION/$PROFILING_WORKFLOW/$CMSSW_VERSION-$b || true
$WORKSPACE/profiling/Gen_tool/runall.sh $CMSSW_VERSION || true
$WORKSPACE/profiling/Gen_tool/runall_cpu.sh $CMSSW_VERSION || true
$WORKSPACE/profiling/Gen_tool/runall_mem_GC.sh $CMSSW_VERSION || true
Expand Down Expand Up @@ -96,7 +106,6 @@ for PROFILING_WORKFLOW in $WORKFLOWS;do
ls -l $LOCALREL/profiling/${CMSSW_VERSION}/${SCRAM_ARCH}/${PROFILING_WORKFLOW}/${UPLOAD_UNIQ_ID}/$BASENAME || true
AMP="&"
echo "<li><a href=\"https://cmssdt.cern.ch/circles/web/piechart.php?data_name=profiling${AMP}filter=${CMSSW_VERSION}${AMP}local=false${AMP}dataset=${CMSSW_VERSION}/${SCRAM_ARCH}/${PROFILING_WORKFLOW}/${UPLOAD_UNIQ_ID}/${BASENAME//.json/}${AMP}resource=time_thread${AMP}colours=default${AMP}groups=reco_PhaseII${AMP}threshold=0\">$BASENAME</a></li>" >> $WORKSPACE/upload/profiling/index-$PROFILING_WORKFLOW.html
get_jenkins_artifacts profiling/${CMSSW_VERSION}/${SCRAM_ARCH}/$f $PROFILING_WORKFLOW/$CMSSW_VERSION-$BASENAME
$CMS_BOT_DIR/comparisons/resources-diff.py $f $PROFILING_WORKFLOW/$CMSSW_VERSION-$BASENAME >$f.log || true
echo "<li><a href=\"${PROFILING_WORKFLOW}/diff-$BASENAME.html\">diff-$BASENAME</a></li>" >> $WORKSPACE/upload/profiling/index-$PROFILING_WORKFLOW.html || true
done
Expand Down

0 comments on commit 83f7db4

Please sign in to comment.