Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass thread count to gridpack run scripts. #17217

Merged
merged 1 commit into from Jan 21, 2017

Conversation

bbockelm
Copy link
Contributor

Altered the ExternalLHEProducer to pass information from the cmsRun process to the script that launches the generators. This requires a small change to EDProducerBase so producers are informed of the number of threads in the current configuration.

Generators that are ready to run multi-process / multi-threaded will use this extra argument; otherwise, this is ignored.

@bendavid - does this reflect what we were discussing in email? Anything I missed? Do you have a suggested cmsDriver command I could run to validate? I'm afraid I don't have deep knowledge on the generators...

@sextonkennedy - this is a follow-up from our discussion in December with @Dr15Jones; Josh had suggested that the most expedient route would be for me to attempt the changes.

Altered the ExternalLHEProducer to pass information from the cmsRun
process to the script that launches the generators.  This requires
a small change to EDProducerBase so producers are informed of the
number of threads in the current configuration.

Generators that are ready to run multi-process / multi-threaded
will use this extra argument; otherwise, this is ignored.
@cmsbuild
Copy link
Contributor

A new Pull Request was created by @bbockelm (Brian Bockelman) for CMSSW_9_0_X.

It involves the following packages:

FWCore/Framework
GeneratorInterface/LHEInterface

@smuzaffar, @Dr15Jones, @perrozzi, @thuer, @cmsbuild, @govoni, @davidlange6 can you please review it and eventually sign? Thanks.
@Martin-Grunewald, @agrohsje, @mkirsano, @wddgit, @wmtan this is something you requested to watch as well.
@davidlange6, @smuzaffar you are the release manager for this.

cms-bot commands are listed here #13028

@bendavid
Copy link
Contributor

Thanks, this looks good to me (though I leave to others to comment whether this is the preferred way of passing the number of threads from the framework down to ExternalLHEProducer).

Indeed only the two run_generic scripts would be expected to support multicore-capable gridpacks (and run_generic_tarball_cvmfs.sh is really the only one used in production these days.)

@bendavid
Copy link
Contributor

Actually there's a second place where this should also be implemented. The "SUSY workflow" which can randomly select from multiple gridpacks bypasses the ExternalLHEProducer and calls the LHE generation scripts directly from within the generator interface.

The function which calls the script is here
https://github.com/cms-sw/cmssw/blob/CMSSW_9_0_X/GeneratorInterface/Core/src/BaseHadronizer.cc#L78

And this is called from the actual EDFilter here
https://github.com/cms-sw/cmssw/blob/CMSSW_9_0_X/GeneratorInterface/Core/interface/GeneratorFilter.h#L239

@bendavid
Copy link
Contributor

For testing, the request which Dirk was testing earlier would be a good representative one where the gridpack should support multicore running to some level.

https://cms-pdmv.cern.ch/mcm/requests?prepid=HIG-RunIISummer15wmLHEGS-00743&page=0&shown=131199

https://cms-pdmv.cern.ch/mcm/public/restapi/requests/get_test/HIG-RunIISummer15wmLHEGS-00743

@Dr15Jones
Copy link
Contributor

+1
Given the change matches what was done for streams, preallocStreams, I'm OK with the change.

@Dr15Jones
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 20, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/17345/console Started: 2017/01/20 18:44

@perrozzi
Copy link
Contributor

+1
Hi, I would say this is ok also for GEN

@cmsbuild
Copy link
Contributor

This pull request is fully signed and it will be integrated in one of the next CMSSW_9_0_X IBs after it passes the integration tests. This pull request requires discussion in the ORP meeting before it's merged. @davidlange6, @smuzaffar

@bbockelm
Copy link
Contributor Author

Note: given @bendavid's input above, there will be an additional commit on this PR to fixup GeneratorFilter.

@cmsbuild
Copy link
Contributor

-1

Tested at: c5c8ab4

You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-17217/17345/summary.html

I found follow errors while testing this PR

Failed tests: UnitTests

  • Unit Tests:

I found errors in the following unit tests:

---> test TestFWCoreIntegrationStandalone had ERRORS

@cmsbuild
Copy link
Contributor

Comparison job queued.

@Dr15Jones
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jan 20, 2017

The tests are being triggered in jenkins.
https://cmssdt.cern.ch/jenkins/job/ib-any-integration/17352/console Started: 2017/01/20 21:14

@cmsbuild
Copy link
Contributor

-1

Tested at: c5c8ab4

You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-17217/17352/summary.html

I found follow errors while testing this PR

Failed tests: UnitTests

  • Unit Tests:

I found errors in the following unit tests:

---> test testRecoMETMETProducers had ERRORS

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

@davidlange6 davidlange6 merged commit 055a6f5 into cms-sw:CMSSW_9_0_X Jan 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants