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

Update OscarMTProducer initialisation #31022

Merged
merged 2 commits into from Aug 3, 2020
Merged

Conversation

civanch
Copy link
Contributor

@civanch civanch commented Aug 2, 2020

PR description:

Initialisation of Geant4 in OscarMTProducer is moved to the beginRun(....) method.
Header files of producers are moved to plugins directory.

PR validation:

private

if this PR is a backport please specify the original PR and why you need to backport that PR:

no backport

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 2, 2020

The code-checks are being triggered in jenkins.

@civanch
Copy link
Contributor Author

civanch commented Aug 2, 2020

+core

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 2, 2020

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31022/17503

  • This PR adds an extra 24KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 2, 2020

A new Pull Request was created by @civanch (Vladimir Ivantchenko) for master.

It involves the following packages:

SimG4Core/Application

@cmsbuild, @civanch, @mdhildreth can you please review it and eventually sign? Thanks.
@makortel, @rovere, @fabiocos, @slomeo this is something you requested to watch as well.
@silviodonato, @dpiparo, @qliphy you are the release manager for this.

cms-bot commands are listed here

@civanch
Copy link
Contributor Author

civanch commented Aug 2, 2020

please test

@civanch
Copy link
Contributor Author

civanch commented Aug 2, 2020

+Core

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 2, 2020

The tests are being triggered in jenkins.

@civanch
Copy link
Contributor Author

civanch commented Aug 2, 2020

@makortel or @Dr15Jones , please, check that the move of Geant4 initialisation from produce(...) to beginRun(...) is done in an optimal way.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 2, 2020

+1
Tested at: 644623d
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-6e32d8/8498/summary.html
CMSSW: CMSSW_11_2_X_2020-08-02-0000
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 2, 2020

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 2, 2020

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-6e32d8/8498/summary.html

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • DQMHistoTests: Total files compared: 34
  • DQMHistoTests: Total histograms compared: 2525448
  • DQMHistoTests: Total failures: 1
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2525400
  • DQMHistoTests: Total skipped: 47
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 33 files compared)
  • Checked 144 log files, 17 edm output root files, 34 DQM output files

@civanch
Copy link
Contributor Author

civanch commented Aug 3, 2020

+1

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 3, 2020

This pull request is fully signed and it will be integrated in one of the next master IBs (tests are also fine). This pull request will now be reviewed by the release team before it's merged. @silviodonato, @dpiparo, @qliphy (and backports should be raised in the release meeting by the corresponding L2)

@silviodonato
Copy link
Contributor

+1

@cmsbuild cmsbuild merged commit 27f8e3b into cms-sw:master Aug 3, 2020
<< " thread " << getThreadIndex() << " initializing";
edm::LogWarning("SimG4CoreApplication")
<< "RunManagerMTWorker::produce(): stream " << inpevt.streamID() << " thread " << getThreadIndex()
<< " initializing in the produce(..) method - there is a problem";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Call to initializeG4() in produce() should not be an indication of a problem. The framework does not guarantee that all TBB worker threads would call the beginRun(). Therefore it is expected that for some threads the produce() is the first function in OscarMTProducer they call (which is why the code was crafted that way).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@makortel , thanks for explanation. In the next PR I will substitute Warning by Verbatim. One of the reason to move initialisation at beginRun(..) is to take out initialisation from the event loop, so this will not affect CPU measurements. For the case, when streams do not coincide with threads we will still have initialisation at the 1st event.

@makortel
Copy link
Contributor

makortel commented Aug 3, 2020

Technically this PR should not cause problems, but the behavior is now a little bit more confusing to understand, because some threads initializeG4() through beginRun() and some through produce().

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

4 participants