-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Fix memory leaks in PortableHostCollection deserialization #40492
Conversation
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40492/33668
|
A new Pull Request was created by @makortel (Matti Kortelainen) for master. It involves the following packages:
@cmsbuild, @makortel, @fwyzard can you please review it and eventually sign? Thanks. cms-bot commands are listed here |
enable gpu |
@cmsbuild, please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-0b8d8c/29931/summary.html Comparison SummaryThere are some workflows for which there are errors in the baseline: Summary:
GPU Comparison SummarySummary:
|
Before ROOT allocated the member arrays of layout_ of the newObj, that are then overwritten by ROOTReadStreamer without deallocation. Setting layout_ as the target as well tells ROOT to not to do those allocations. Tested with DataFormats/PortableTestObjects, but should apply to CUDADataFormats/PortableTestObjects as well.
44d861b
to
8192b7f
Compare
Now applying the same fix to |
+code-checks Logs: https://cmssdt.cern.ch/SDT/code-checks/cms-sw-PR-40492/33678
|
@cmsbuild, please test |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-0b8d8c/30389/summary.html Comparison SummarySummary:
GPU Comparison SummarySummary:
|
I'll have another look on Monday. |
please test |
+heterogeneous |
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) |
+1 Summary: https://cmssdt.cern.ch/SDT/jenkins-artifacts/pull-request-integration/PR-0b8d8c/30500/summary.html Comparison SummarySummary:
GPU Comparison SummarySummary:
|
+1 |
PR description:
Before ROOT allocated the member arrays of
layout_
of thenewObj
, that are then overwritten byROOTReadStreamer()
without deallocation. Settinglayout_
as the target as well tells ROOT to not to do those allocations. More details in #40491.The second commit by @ericcano introduces
Layout::ROOTStreamerCleaner()
to delete the Layout's member arrays allocated by ROOT (more details in #40491 (comment)).Resolves #40491
PR validation:
Checked with
valgrind
that the amount of memory leaks inHeterogeneousCore/AlpakaTest/test/reader.py
decreased.