Skip to content

Commit

Permalink
run short matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Jan 11, 2025
1 parent 796b612 commit 05cb5bf
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
32 changes: 19 additions & 13 deletions crab/scram-build/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ld.so --help | grep supported | grep x86-64-v
pushd $CMSSW_BASE
sed -i -e 's|</tool>| <flags REM_CUDA_HOST_CXXFLAGS="-march=%"/>\n <flags CUDA_HOST_CXXFLAGS="-march=x86-64-v2"/>\n</tool>|' config/toolbox/${SCRAM_ARCH}/tools/selected/cuda.xml
sed -i -e 's|</tool>| <flags REM_ROCM_HOST_CXXFLAGS="-march=%"/>\n <flags ROCM_HOST_CXXFLAGS="-march=x86-64-v2"/>\n</tool>|' config/toolbox/${SCRAM_ARCH}/tools/selected/rocm.xml
git clone --depth 1 -b multi-targets https://github.com/cms-sw/cmssw-config >$log 2>&1
git clone --depth 1 -b multi-targets https://github.com/cms-sw/cmssw-config >$log 2>&1
rm -rf config/SCRAM
mv cmssw-config/SCRAM config/SCRAM
rm -rf cmssw-config
Expand All @@ -13,23 +13,29 @@ pushd $CMSSW_BASE
scram b clean >>$log 2>&1
scram build enable-multi-targets >>$log 2>&1
rm -rf src
for pkg in FWCore/Framework DataFormats GeneratorInterface/RivetInterface Geometry BigProducts/Simulation SimG4CMS SimG4Core HeterogeneousTest HeterogeneousCore ; do
for pkg in FWCore/Framework DataFormats ; do
mkdir -p src/$pkg
rsync -a --no-g $CMSSW_RELEASE_BASE/src/$pkg/ src/$pkg/
done
scram b -v -k -j $(nproc) >>$log 2>&1
cat $log
eval `scram run -sh`
echo $LD_LIBRARY_PATH | tr : '\n'
echo $PATH | tr : '\n'
which edmPluginDump
edmPluginDump -a >>$log
which cmsRun
cmsRun --help >>$log
for d in lib biglib bin test ; do
echo "======= $d =======" >>$log
[ -d $d ] || continue
find lib -type f >>$log
done
mkdir matrix
pushd matrix
runTheMatrix.py --job-reports --command " -n 5 --customise Validation/Performance/TimeMemorySummary.customiseWithTimeMemorySummary " \
-i all -s -j 1 --ibeos >>$log 2>&1 || touch runall-report-step123-.log
for f in $(find . -name '*' -type f) ; do
case $f in
*.xml|*.txt|*.log|*.py|*.json|*/cmdLog ) ;;
* ) rm -rf $f ;;
esac
done
popd
mv matrix/runall-report-step123-.log matrix.log
cat matrix.log >>$log
cat matrix.log
tar -czvf matrix.tar.gz matrix >>$log 2>&1
popd
[ -f run.log ] || mv $log .
[ -f matrix.tar.gz ] || mv $CMSSW_BASE/matrix.tar.gz .
[ -f matrix.log ] || mv $CMSSW_BASE/matrix.log .
2 changes: 1 addition & 1 deletion crab/scram-build/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
config.JobType.allowUndistributedCMSSW = True
config.JobType.scriptExe = "run.sh"
config.JobType.disableAutomaticOutputCollection = True
config.JobType.outputFiles = ["run.log"]
config.JobType.outputFiles = ["run.log", "matrix.tar.gz", "matrix.log"]
config.JobType.inputFiles = ["FrameworkJobReport.xml"]

config.Site.storageSite = "T2_CH_CERN"
Expand Down

0 comments on commit 05cb5bf

Please sign in to comment.