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

phase-2 reco CPU hotspot: PFElecTkProducer #30992

Merged
merged 1 commit into from Aug 5, 2020
Merged

phase-2 reco CPU hotspot: PFElecTkProducer #30992

merged 1 commit into from Aug 5, 2020

Conversation

guitargeek
Copy link
Contributor

@guitargeek guitargeek commented Jul 30, 2020

PR description:

Speed up of another electron related Phase II bottleneck, reported in #30953:

  • precompute track eta and phi with edm::soa::EtaPhiTable
  • skip expensive computation of number of shared hits if track lies outside of matching cone
  • as consequence, cost of PFElecTkProducer::FindPfRef in workflow 23434.21 (step3) drops from 2.5 % to 0.01 % (see this report)

PR validation:

CMSSW compiles and local matrix tests pass, plus profiling.

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

No backport intended.

@cmsbuild
Copy link
Contributor

The code-checks are being triggered in jenkins.

@hatakeyamak
Copy link
Contributor

@hatakeyamak @bendavid
Thanks @guitargeek

@cmsbuild
Copy link
Contributor

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-30992/17442

@cmsbuild
Copy link
Contributor

A new Pull Request was created by @guitargeek (Jonas Rembser) for master.

It involves the following packages:

DataFormats/ParticleFlowReco
RecoParticleFlow/PFTracking

@perrotta, @jpata, @cmsbuild, @slava77 can you please review it and eventually sign? Thanks.
@mmarionncern, @makortel, @cbernet, @rovere, @lgray, @lecriste, @hatakeyamak, @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

@kpedro88
Copy link
Contributor

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Jul 30, 2020

The tests are being triggered in jenkins.

@cmsbuild
Copy link
Contributor

+1
Tested at: 1bb3352
https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-a911fc/8445/summary.html
CMSSW: CMSSW_11_2_X_2020-07-30-1100
SCRAM_ARCH: slc7_amd64_gcc820

@cmsbuild
Copy link
Contributor

Comparison job queued.

@cmsbuild
Copy link
Contributor

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

Comparison Summary:

  • No significant changes to the logs found
  • Reco comparison results: 4 differences found in the comparisons
  • DQMHistoTests: Total files compared: 34
  • DQMHistoTests: Total histograms compared: 2525444
  • DQMHistoTests: Total failures: 7
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 2525390
  • 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

@jpata
Copy link
Contributor

jpata commented Aug 5, 2020

+1

  • tests pass with no reco difference
  • PR implements technical changes to the PFElecTkProducer::findPfRef
  • significantly reduces the CPU cost of the module in question

Thank you @guitargeek, this is great. My only comment is that I see this code is still using old-style getByHandle, this can be followed up separately in a refactoring.

@cmsbuild
Copy link
Contributor

cmsbuild commented Aug 5, 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 78a9bfd into cms-sw:master Aug 5, 2020
@guitargeek guitargeek deleted the PFElecTkProducer_1 branch August 5, 2020 07:49
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