Closed fwyzard closed 4 years ago
If these changes look reasonable, I plan to extend them from HcalConvertedPedestalWidthsGPU
to the other ESProducts.
@mariadalfonso @vkhristenko if you are fine with the changes, I'll work on the other ESProducts next.
np from my side
On Thu, 19 Nov 2020 at 19:35, Andrea Bocci notifications@github.com wrote:
@mariadalfonso https://github.com/mariadalfonso @vkhristenko https://github.com/vkhristenko if you are fine with the changes, I'll work on the other ESProducts next.
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/cms-patatrack/cmssw/pull/574#issuecomment-730560879, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABSFUCKNU4YAAZ3NT5BTPZDSQVQQVANCNFSM4T3L3I3Q .
looks ok to me. I have not tested the changes but I assume are transparent
- setup.get<HcalConvertedEffectivePedestalWidthsRcd>().get(effectivePedestalWidthsHandle);
+ setup.get<HcalConvertedPedestalWidthsRcd>().get(effectivePedestalWidthsHandle);
by the way similarly should be done for the conditions in ECAL
Validated on top of CMSSW_11_2_0_pre9
OK, I think I've addressed all the comments on edm::propage_const_array
?
According to StackOverflow the defaulted constructors are automatically constexpr
, if possible.
I can add it explicitly if you prefer, it compiles fine.
According to StackOverflow the defaulted constructors are automatically constexpr, if possible.
I did a quick check on godbolt and StackOverflow appears correct :).
I can add it explicitly if you prefer, it compiles fine.
I guess I don't mind either way.
I'll add it - for consistency with https://en.cppreference.com/w/cpp/experimental/propagate_const/propagate_const :-)
.A
Address the comments from review of cms-sw#32039.
Remove duplicate GPU-related HCAL conditions records, and simplify the package dependencies moving the remaining ones to CondFormats/DataRecord.
Improve the handling of the GPU conditions payloads:
cms::cuda::device::unique_ptr
to automatically deallocate the memory;edm::propagate_const_array
to ensure that the conditions data are not accidentally modified by client code;cms::cuda::copyAsync(...)
to simplify the copy of the conditions to the device.