CMS 3D CMS Logo

EcalTimeCalibConstantsGPU.h
Go to the documentation of this file.
1 #ifndef CondFormats_EcalObjects_interface_EcalTimeCalibConstantsGPU_h
2 #define CondFormats_EcalObjects_interface_EcalTimeCalibConstantsGPU_h
3 
7 
8 #ifndef __CUDACC__
11 #endif // __CUDACC__
12 
14 public:
15  struct Product {
17  };
18 
19 #ifndef __CUDACC__
20  // rearrange pedestals
22 
23  // will call dealloation for Product thru ~Product
24  ~EcalTimeCalibConstantsGPU() = default;
25 
26  // get device pointers
27  Product const& getProduct(cudaStream_t) const;
28 
29  // TODO: do this centrally
30  // get offset for hashes. equals number of barrel items
31  uint32_t getOffset() const { return offset_; }
32 
33  //
34  static std::string name() { return std::string{"ecalTimeCalibConstantsGPU"}; }
35 
36 private:
37  std::vector<float, cms::cuda::HostAllocator<float>> values_;
38  uint32_t offset_;
39 
41 #endif // __CUDACC__
42 };
43 
44 #endif // CondFormats_EcalObjects_interface_EcalTimeCalibConstantsGPU_h
HostAllocator.h
EcalTimeCalibConstantsGPU::Product
Definition: EcalTimeCalibConstantsGPU.h:15
EcalTimeCalibConstants.h
device_unique_ptr.h
EcalCondObjectContainer
Definition: EcalCondObjectContainer.h:13
EcalTimeCalibConstantsGPU::product_
cms::cuda::ESProduct< Product > product_
Definition: EcalTimeCalibConstantsGPU.h:40
EcalTimeCalibConstantsGPU::offset_
uint32_t offset_
Definition: EcalTimeCalibConstantsGPU.h:38
EcalTimeCalibConstantsGPU::getProduct
Product const & getProduct(cudaStream_t) const
Definition: EcalTimeCalibConstantsGPU.cc:14
cms::cuda::ESProduct
Definition: ESProduct.h:19
EcalTimeCalibConstantsGPU::values_
std::vector< float, cms::cuda::HostAllocator< float > > values_
Definition: EcalTimeCalibConstantsGPU.h:37
EcalTimeCalibConstantsGPU
Definition: EcalTimeCalibConstantsGPU.h:13
EcalTimeCalibConstantsGPU::name
static std::string name()
Definition: EcalTimeCalibConstantsGPU.h:34
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
EcalTimeCalibConstantsGPU::EcalTimeCalibConstantsGPU
EcalTimeCalibConstantsGPU(EcalTimeCalibConstants const &)
Definition: EcalTimeCalibConstantsGPU.cc:6
EcalTimeCalibConstantsGPU::Product::values
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > values
Definition: EcalTimeCalibConstantsGPU.h:16
edm::propagate_const_array
Definition: propagate_const_array.h:61
EcalTimeCalibConstantsGPU::~EcalTimeCalibConstantsGPU
~EcalTimeCalibConstantsGPU()=default
EcalTimeCalibConstantsGPU::getOffset
uint32_t getOffset() const
Definition: EcalTimeCalibConstantsGPU.h:31
propagate_const_array.h
ESProduct.h