Skip to content

Commit

Permalink
override job time
Browse files Browse the repository at this point in the history
  • Loading branch information
smuzaffar committed Jan 10, 2025
1 parent aff0270 commit 796b612
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions crab/scram-build/run.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash -x
log="run.log"
log="$CMSSW_BASE/run.log"
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
Expand Down Expand Up @@ -32,4 +32,4 @@ pushd $CMSSW_BASE
find lib -type f >>$log
done
popd
mv $CMSSW_BASE/$log .
[ -f run.log ] || mv $log .
2 changes: 1 addition & 1 deletion crab/scram-build/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

config.JobType.psetName = "pset.py"
config.JobType.pluginName = "PrivateMC"
config.JobType.maxJobRuntimeMin = 120
config.JobType.maxJobRuntimeMin = int(os.getenv("CRAB_MAX_TIME", "480"))
config.JobType.maxMemoryMB = 8000
config.JobType.numCores = 4
config.JobType.allowUndistributedCMSSW = True
Expand Down

0 comments on commit 796b612

Please sign in to comment.