Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22380 from Dr15Jones/concurrentLumiTest
Add concurrent LuminosityBlock tests
- Loading branch information
Showing
3 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
# Pass in name and status | ||
function die { echo $1: status $2 ; exit $2; } | ||
|
||
#the last few lines of the output are the printout from the | ||
# ConcurrentModuleTimer service detailing how much time was | ||
# spent in 2,3 or 4 modules running simultaneously. | ||
touch empty_file | ||
|
||
(cmsRun ${LOCAL_TEST_DIR}/test_1_concurrent_lumi_cfg.py 2>&1) | tail -n 2 | grep -v ' 0 ' | grep -v 'e-' | diff - empty_file || die "Failure using test_1_concurrent_lumi_cfg.py" $? | ||
|
||
(cmsRun ${LOCAL_TEST_DIR}/test_2_concurrent_lumis_cfg.py 2>&1) | tail -n 1 | grep -v ' 0 ' | grep -v 'e-' | diff - empty_file && die "Failure using test_2_concurrent_lumis_cfg.py" $? | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
process = cms.Process("TEST") | ||
|
||
process.source = cms.Source("EmptySource", numberEventsInLuminosityBlock = cms.untracked.uint32(2)) | ||
|
||
process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32( 20 ) ) | ||
|
||
process.options = cms.untracked.PSet( numberOfThreads = cms.untracked.uint32(4), | ||
numberOfStreams = cms.untracked.uint32(0), | ||
numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(1)) | ||
|
||
process.prod = cms.EDProducer("BusyWaitIntProducer", | ||
ivalue = cms.int32(1), | ||
iterations = cms.uint32(50*1000) ) | ||
|
||
process.p = cms.Path(process.prod) | ||
|
||
process.add_(cms.Service("ConcurrentModuleTimer", | ||
modulesToExclude = cms.untracked.vstring("TriggerResults","p"), | ||
excludeSource = cms.untracked.bool(True))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import FWCore.ParameterSet.Config as cms | ||
|
||
process = cms.Process("TEST") | ||
|
||
process.source = cms.Source("EmptySource", numberEventsInLuminosityBlock = cms.untracked.uint32(2)) | ||
|
||
process.maxEvents = cms.untracked.PSet(input = cms.untracked.int32( 20 ) ) | ||
|
||
process.options = cms.untracked.PSet( numberOfThreads = cms.untracked.uint32(4), | ||
numberOfStreams = cms.untracked.uint32(0), | ||
numberOfConcurrentLuminosityBlocks = cms.untracked.uint32(2)) | ||
|
||
process.prod = cms.EDProducer("BusyWaitIntProducer", | ||
ivalue = cms.int32(1), | ||
iterations = cms.uint32(50*1000) ) | ||
|
||
process.p = cms.Path(process.prod) | ||
|
||
process.add_(cms.Service("ConcurrentModuleTimer", | ||
modulesToExclude = cms.untracked.vstring("TriggerResults","p"), | ||
excludeSource = cms.untracked.bool(True))) | ||
|