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

Reduce the ECAL and HCAL GPU memory usage #39577

Merged
merged 3 commits into from Oct 4, 2022

Conversation

fwyzard
Copy link
Contributor

@fwyzard fwyzard commented Oct 3, 2022

PR description:

Allocate memory buffers based on the actual number of events, instead of always allocating the maximum size.

Update the HLT menus to remove the obsolete parameters, if they are present.

Reduces the total GPU memory from running the HLT with 4 jobs with 32 threads and 32 streams by about 25%:

release total reserved used free
CMSSW_12_4_9 15360 MB 449 MB 10678 - 10090 MB 4231 - 4819 MB
with #39580 15360 MB 449 MB 7366 - 8056 MB 7543 - 6853 MB

Thanks to @VinInn for finding the issue and for the changes.

PR validation:

The full HLT menu runs on GPU (with 12.4.9 plus #39580) without issues.

If this PR is a backport please specify the original PR and why you need to backport that PR. If this PR will be backported please specify to which release cycle the backport is meant for:

To be backported to 12.4.x and 12.5.x for data taking.

VinInn and others added 2 commits October 3, 2022 14:24
Allocate memory buffers based on the actual number of events, instead of
always allocating the maximum size.
@fwyzard
Copy link
Contributor Author

fwyzard commented Oct 3, 2022

@mariadalfonso @thomreis can you double check these changes ?

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 3, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-39577/32363

  • This PR adds an extra 28KB to repository

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 3, 2022

A new Pull Request was created by @fwyzard (Andrea Bocci) for master.

It involves the following packages:

  • RecoLocalCalo/EcalRecProducers (reconstruction)
  • RecoLocalCalo/HcalRecProducers (reconstruction)

@cmsbuild, @mandrenguyen, @clacaputo can you please review it and eventually sign? Thanks.
@youyingli, @apsallid, @rchatter, @argiro, @missirol, @bsunanda, @thomreis, @simonepigazzini, @mariadalfonso, @abdoulline this is something you requested to watch as well.
@perrotta, @dpiparo, @rappoccio you are the release manager for this.

cms-bot commands are listed here

@fwyzard
Copy link
Contributor Author

fwyzard commented Oct 3, 2022

enable gpu

@fwyzard
Copy link
Contributor Author

fwyzard commented Oct 3, 2022

please test

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 3, 2022

+code-checks

Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-39577/32364

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 3, 2022

Pull request #39577 was updated. @Martin-Grunewald, @missirol, @mandrenguyen, @clacaputo can you please check and sign again.

@thomreis
Copy link
Contributor

thomreis commented Oct 3, 2022

Looks good to me for the ECAL part.
For the sizeEB and sizeEE themselves uint16_t would be sufficient in fact but not for the sum of the two.

@mariadalfonso
Copy link
Contributor

looks good from HCAL point of view ! thanks for making the change

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 3, 2022

+1

Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-8d272e/27931/summary.html
COMMIT: 25d2630
CMSSW: CMSSW_12_6_X_2022-10-02-2300/el8_amd64_gcc10
Additional Tests: GPU
User test area: For local testing, you can use /cvmfs/cms-ci.cern.ch/week1/cms-sw/cmssw/39577/27931/install.sh to create a dev area with all the needed externals and cmssw changes.

Comparison Summary

@slava77 comparisons for the following workflows were not done due to missing matrix map:

  • /data/cmsbld/jenkins/workspace/compare-root-files-short-matrix/data/PR-8d272e/41834.0_TTbar_14TeV+2026D94+TTbar_14TeV_TuneCP5_GenSimHLBeamSpot14+DigiTrigger+RecoGlobal+HARVESTGlobal

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 9 differences found in the comparisons
  • DQMHistoTests: Total files compared: 49
  • DQMHistoTests: Total histograms compared: 3432650
  • DQMHistoTests: Total failures: 9
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 3432619
  • DQMHistoTests: Total skipped: 22
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 48 files compared)
  • Checked 204 log files, 49 edm output root files, 49 DQM output files
  • TriggerResults: no differences found

GPU Comparison Summary

Summary:

  • No significant changes to the logs found
  • Reco comparison results: 0 differences found in the comparisons
  • Reco comparison had 3 failed jobs
  • DQMHistoTests: Total files compared: 4
  • DQMHistoTests: Total histograms compared: 19876
  • DQMHistoTests: Total failures: 74
  • DQMHistoTests: Total nulls: 0
  • DQMHistoTests: Total successes: 19802
  • DQMHistoTests: Total skipped: 0
  • DQMHistoTests: Total Missing objects: 0
  • DQMHistoSizes: Histogram memory added: 0.0 KiB( 3 files compared)
  • Checked 12 log files, 9 edm output root files, 4 DQM output files
  • TriggerResults: no differences found

@missirol
Copy link
Contributor

missirol commented Oct 3, 2022

+hlt

@mandrenguyen
Copy link
Contributor

assign heterogeneous

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 4, 2022

New categories assigned: heterogeneous

@fwyzard,@makortel you have been requested to review this Pull request/Issue and eventually sign? Thanks

@mandrenguyen
Copy link
Contributor

+reconstruction
CPU wfs unmodified. GPU wfs look to have "the usual" differences, but I let heterogeneous explicitly sign off just in case.

@fwyzard
Copy link
Contributor Author

fwyzard commented Oct 4, 2022

+heterogeneous

@cmsbuild
Copy link
Contributor

cmsbuild commented Oct 4, 2022

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. @perrotta, @dpiparo, @rappoccio (and backports should be raised in the release meeting by the corresponding L2)

@perrotta
Copy link
Contributor

perrotta commented Oct 4, 2022

+1

@cmsbuild cmsbuild merged commit ff07d94 into cms-sw:master Oct 4, 2022
@fwyzard fwyzard deleted the reduce_ECAL_HCAL_GPU_memory_usage branch October 11, 2022 14:09
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