-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Addressing ECAL local reconstruction on GPU issues #33116
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
Merged
cmsbuild
merged 26 commits into
cms-sw:master
from
thomreis:ecal-local-reco-gpu-fix-issues
Mar 24, 2021
Merged
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
669e272
Move ElectronicsMappingGPU from EventFilter/EcalRawToDigi to CondForm…
thomreis 680b53c
Move EcalGainRatiosGPU from RecoLocalCalo/EcalRecAlgos to CondFormats…
thomreis cf2976b
Move EcalIntercalibConstantsGPU from RecoLocalCalo/EcalRecAlgos to Co…
thomreis 258ff29
Move EcalLaserAPDPNRatiosGPU from RecoLocalCalo/EcalRecAlgos to CondF…
thomreis aabee9a
Move EcalLaserAPDPNRatiosRefGPU from RecoLocalCalo/EcalRecAlgos to Co…
thomreis 5769d1a
Move EcalLaserAlphasGPU from RecoLocalCalo/EcalRecAlgos to CondFormat…
thomreis 53b454d
Move EcalLinearCorrectionsGPU from RecoLocalCalo/EcalRecAlgos to Cond…
thomreis be8340c
Move EcalMultifitParametersGPU from RecoLocalCalo/EcalRecAlgos to Con…
thomreis 9b3c2d1
Move EcalPedestalsGPU from RecoLocalCalo/EcalRecAlgos to CondFormats/…
thomreis b806a2f
Move EcalPulseCovariancesGPU from RecoLocalCalo/EcalRecAlgos to CondF…
thomreis cbf54d2
Move EcalPulseShapesGPU from RecoLocalCalo/EcalRecAlgos to CondFormat…
thomreis 4589bd8
Move EcalRecHitParametersGPU from RecoLocalCalo/EcalRecAlgos to CondF…
thomreis 7cbbefa
Move EcalRechitADCToGeVConstantGPU from RecoLocalCalo/EcalRecAlgos to…
thomreis afe2830
Move EcalRechitChannelStatusGPU from RecoLocalCalo/EcalRecAlgos to Co…
thomreis ca4c9b6
Move EcalSamplesCorrelationGPU from RecoLocalCalo/EcalRecAlgos to Con…
thomreis 2ffdda7
Move EcalTimeBiasCorrectionsGPU from RecoLocalCalo/EcalRecAlgos to Co…
thomreis 024bf2a
Move EcalTimeCalibConstantsGPU from RecoLocalCalo/EcalRecAlgos to Con…
thomreis 13cf525
Clean up BuildFiles.
thomreis 5f5cc26
Replace cudaMallow and cudaMemcpyAsync with cms::cude::make_device_un…
thomreis 58a108e
Replace cudaMallow and cudaMemcpyAsync with cms::cude::make_device_un…
thomreis 2c0e025
Replace cudaMallow and cudaMemcpyAsync with cms::cude::make_device_un…
thomreis 7d6218f
Remove Common.h and use gainId and adc functions from DataFormats/Eca…
thomreis 60c8bac
Comments cleanup.
thomreis 79a2cee
Apply code-checks and code-format.
thomreis 7375ce7
Fix segfault.
thomreis 0439265
Variable name changes to comply with code rules.
thomreis File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
CondFormats/EcalObjects/interface/EcalLaserAPDPNRatiosGPU.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,54 @@ | ||
| #ifndef CondFormats_EcalObjects_interface_EcalLaserAPDPNRatiosGPU_h | ||
| #define CondFormats_EcalObjects_interface_EcalLaserAPDPNRatiosGPU_h | ||
|
|
||
| #include "CondFormats/EcalObjects/interface/EcalLaserAPDPNRatios.h" | ||
| #include "FWCore/Utilities/interface/propagate_const_array.h" | ||
| #include "HeterogeneousCore/CUDAUtilities/interface/device_unique_ptr.h" | ||
|
|
||
| #ifndef __CUDACC__ | ||
| #include "HeterogeneousCore/CUDAUtilities/interface/HostAllocator.h" | ||
| #include "HeterogeneousCore/CUDACore/interface/ESProduct.h" | ||
| #endif // __CUDACC__ | ||
|
|
||
| class EcalLaserAPDPNRatiosGPU { | ||
| public: | ||
| struct Product { | ||
| edm::propagate_const_array<cms::cuda::device::unique_ptr<float[]>> p1; | ||
| edm::propagate_const_array<cms::cuda::device::unique_ptr<float[]>> p2; | ||
| edm::propagate_const_array<cms::cuda::device::unique_ptr<float[]>> p3; | ||
| edm::propagate_const_array<cms::cuda::device::unique_ptr<edm::TimeValue_t[]>> t1; | ||
| edm::propagate_const_array<cms::cuda::device::unique_ptr<edm::TimeValue_t[]>> t2; | ||
| edm::propagate_const_array<cms::cuda::device::unique_ptr<edm::TimeValue_t[]>> t3; | ||
| }; | ||
|
|
||
| #ifndef __CUDACC__ | ||
|
|
||
| // | ||
| EcalLaserAPDPNRatiosGPU(EcalLaserAPDPNRatios const &); | ||
|
|
||
| // will call dealloation for Product thru ~Product | ||
| ~EcalLaserAPDPNRatiosGPU() = default; | ||
|
|
||
| // get device pointers | ||
| Product const &getProduct(cudaStream_t) const; | ||
|
|
||
| // | ||
| static std::string name() { return std::string{"ecalLaserAPDPNRatiosGPU"}; } | ||
|
|
||
| private: | ||
| // in the future, we need to arrange so to avoid this copy on the host | ||
| // store eb first then ee | ||
| std::vector<float, cms::cuda::HostAllocator<float>> p1_; | ||
| std::vector<float, cms::cuda::HostAllocator<float>> p2_; | ||
| std::vector<float, cms::cuda::HostAllocator<float>> p3_; | ||
|
|
||
| std::vector<edm::TimeValue_t, cms::cuda::HostAllocator<edm::TimeValue_t>> t1_; | ||
| std::vector<edm::TimeValue_t, cms::cuda::HostAllocator<edm::TimeValue_t>> t2_; | ||
| std::vector<edm::TimeValue_t, cms::cuda::HostAllocator<edm::TimeValue_t>> t3_; | ||
|
|
||
| cms::cuda::ESProduct<Product> product_; | ||
|
|
||
| #endif // __CUDACC__ | ||
| }; | ||
|
|
||
| #endif // CondFormats_EcalObjects_interface_EcalLaserAPDPNRatiosGPU_h |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.