CMS 3D CMS Logo

HcalConvertedPedestalsGPU.h
Go to the documentation of this file.
1 #ifndef CondFormats_HcalObjects_interface_HcalConvertedPedestalsGPU_h
2 #define CondFormats_HcalObjects_interface_HcalConvertedPedestalsGPU_h
3 
9 
10 #ifndef __CUDACC__
13 #endif
14 
16 public:
17  struct Product {
19  };
20 
21 #ifndef __CUDACC__
22  // order matters!
24 
25  // will trigger deallocation of Product thru ~Product
26  ~HcalConvertedPedestalsGPU() = default;
27 
28  // get device pointers
29  Product const& getProduct(cudaStream_t) const;
30 
31  uint32_t offsetForHashes() const { return offsetForHashes_; }
32 
33 protected:
35  uint32_t offsetForHashes_;
36  std::vector<float, cms::cuda::HostAllocator<float>> values_;
37 
39 #endif
40 };
41 
42 #endif
HcalConvertedPedestalsGPU::values_
std::vector< float, cms::cuda::HostAllocator< float > > values_
Definition: HcalConvertedPedestalsGPU.h:36
HostAllocator.h
HcalConvertedPedestalsGPU::Product
Definition: HcalConvertedPedestalsGPU.h:17
HcalConvertedPedestalsGPU::offsetForHashes
uint32_t offsetForHashes() const
Definition: HcalConvertedPedestalsGPU.h:31
HcalConvertedPedestalsGPU::getProduct
Product const & getProduct(cudaStream_t) const
Definition: HcalConvertedPedestalsGPU.cc:109
HcalPedestals.h
HcalQIETypes.h
device_unique_ptr.h
HcalConvertedPedestalsGPU
Definition: HcalConvertedPedestalsGPU.h:15
HcalConvertedPedestalsGPU::product_
cms::cuda::ESProduct< Product > product_
Definition: HcalConvertedPedestalsGPU.h:38
HcalPedestals
Definition: HcalPedestals.h:20
cms::cuda::ESProduct
Definition: ESProduct.h:20
HcalQIEData.h
HcalConvertedPedestalsGPU::Product::values
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > values
Definition: HcalConvertedPedestalsGPU.h:18
HcalQIETypes
Definition: HcalQIETypes.h:17
HcalQIEData
Definition: HcalQIEData.h:24
edm::propagate_const_array
Definition: propagate_const_array.h:61
HcalConvertedPedestalsGPU::totalChannels_
uint64_t totalChannels_
Definition: HcalConvertedPedestalsGPU.h:34
HcalConvertedPedestalsGPU::HcalConvertedPedestalsGPU
HcalConvertedPedestalsGPU(HcalPedestals const &, HcalQIEData const &, HcalQIETypes const &)
Definition: HcalConvertedPedestalsGPU.cc:18
propagate_const_array.h
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
HcalConvertedPedestalsGPU::~HcalConvertedPedestalsGPU
~HcalConvertedPedestalsGPU()=default
ESProduct.h
HcalConvertedPedestalsGPU::offsetForHashes_
uint32_t offsetForHashes_
Definition: HcalConvertedPedestalsGPU.h:35