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

Remove use of deprecated tbb::task_scheduler_init from FWCore #31313

Merged
merged 10 commits into from Sep 11, 2020

Conversation

Dr15Jones
Copy link
Contributor

PR description:

  • Use tbb::global_control and an explicit tbb::task_arena to control number of threads. The explicit task_arena allows for the possibility of allowing oversubscribing the number of threads used (helpful for scale testing).
  • Removed all direct use of edm::EventProcessor outside of FWCore. This avoids having to deal with restricting the number of threads to use outside of FWCore.

PR validation:

  • all FWCore unit tests pass
  • did runTheMatrix.py -l limited -t 4 and runTheMatrix.py -l limited -t 1 both of which were successful.

Replace explicit call to tbb::task_scheduler_init with new
edm::ThreadsController.
Also make sure waiting task is spawned back into the same task_arena
active during the original call.
Using tbb::task_arena together with tbb::global_control allows for
oversubscribing the number of threads without having to use the
deprecated tbb::task_scheduler_init.
The file is never built, was directly using edm::EventProcessor
and using the old no-longer-supported configuration language
syntax.
Avoid direct use of EventProcessor and instead just have test
use cmsRun.
@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 1, 2020

The code-checks are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 1, 2020

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-31313/18060

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 1, 2020

A new Pull Request was created by @Dr15Jones (Chris Jones) for master.

It involves the following packages:

CondFormats/CSCObjects
EventFilter/CSCTFRawToDigi
EventFilter/DTRawToDigi
FWCore/Concurrency
FWCore/Framework
FWCore/Integration
FWCore/PythonFramework
FWCore/TestProcessor
FWCore/Utilities

@perrotta, @smuzaffar, @benkrikler, @Dr15Jones, @jpata, @makortel, @tlampen, @christopheralanwest, @tocheng, @cmsbuild, @rekovic, @slava77, @ggovi, @pohsun can you please review it and eventually sign? Thanks.
@battibass, @makortel, @felicepantaleo, @wddgit, @Martin-Grunewald, @ptcox, @tocheng, @dildick, @mmusich, @seemasharmafnal 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

@Dr15Jones
Copy link
Contributor Author

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 1, 2020

The tests are being triggered in jenkins.

@makortel
Copy link
Contributor

makortel commented Sep 1, 2020

Resolves #29753

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 1, 2020

-1

Tested at: 8ee085c

CMSSW: CMSSW_11_2_X_2020-09-01-1100
SCRAM_ARCH: slc7_amd64_gcc820
You can see the results of the tests here:
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9c4db6/9038/summary.html

I found follow errors while testing this PR

Failed tests: UnitTests

  • Unit Tests:

I found errors in the following unit tests:

---> test testGeneratorInterfaceLHEInterface_TP had ERRORS

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 1, 2020

Comparison job queued.

@cmsbuild
Copy link
Contributor

cmsbuild commented Sep 3, 2020

Comparison is ready
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-9c4db6/9105/summary.html

Comparison Summary:

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

@makortel
Copy link
Contributor

makortel commented Sep 3, 2020

+1

@slava77
Copy link
Contributor

slava77 commented Sep 3, 2020

+1

for #31313 c645fae

  • new changes since the last reco signoff were outside of reco, in FWCore

@pohsun
Copy link

pohsun commented Sep 7, 2020

+1

@Dr15Jones
Copy link
Contributor Author

ping @cms-sw/db-l2 @cms-sw/l1-l2

@ggovi
Copy link
Contributor

ggovi commented Sep 8, 2020

+1

@Dr15Jones
Copy link
Contributor Author

please review @cms-sw/l1-l2

@Dr15Jones
Copy link
Contributor Author

@cms-sw/l1-l2 yours is the last signature needed and the changes in your area were just

  • the removal of an uncompiled test program and
  • changing a test to no longer require a stand alone executable and instead use cmsRun directly.

@smuzaffar
Copy link
Contributor

@silviodonato , L1 changes looks reasonable. Can we get this in?

@silviodonato
Copy link
Contributor

merge
@rekovic

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

8 participants