CMS 3D CMS Logo

HcalMahiPulseOffsetsGPU.h
Go to the documentation of this file.
1 #ifndef RecoLocalCalo_HcalRecAlgos_interface_HcalMahiPulseOffsetsGPU_h
2 #define RecoLocalCalo_HcalRecAlgos_interface_HcalMahiPulseOffsetsGPU_h
3 
5 
6 #ifndef __CUDACC__
9 #endif
10 
12 public:
13  struct Product {
14  ~Product();
15  int* values;
16  };
17 
18 #ifndef __CUDACC__
19  // rearrange reco params
21 
22  // will trigger deallocation of Product thru ~Product
23  ~HcalMahiPulseOffsetsGPU() = default;
24 
25  std::vector<int, cms::cuda::HostAllocator<int>> const& getValues() const { return values_; }
26 
27  // get device pointers
28  Product const& getProduct(cudaStream_t) const;
29 
30 private:
31  std::vector<int, cms::cuda::HostAllocator<int>> values_;
32 
34 #endif
35 };
36 
37 #endif
HcalMahiPulseOffsetsGPU::values_
std::vector< int, cms::cuda::HostAllocator< int > > values_
Definition: HcalMahiPulseOffsetsGPU.h:31
HostAllocator.h
HcalMahiPulseOffsetsGPU::HcalMahiPulseOffsetsGPU
HcalMahiPulseOffsetsGPU(edm::ParameterSet const &)
Definition: HcalMahiPulseOffsetsGPU.cc:7
HcalMahiPulseOffsetsGPU::Product::values
int * values
Definition: HcalMahiPulseOffsetsGPU.h:15
HcalMahiPulseOffsetsGPU::Product::~Product
~Product()
Definition: HcalMahiPulseOffsetsGPU.cc:13
cms::cuda::ESProduct
Definition: ESProduct.h:19
HcalMahiPulseOffsetsGPU::getValues
std::vector< int, cms::cuda::HostAllocator< int > > const & getValues() const
Definition: HcalMahiPulseOffsetsGPU.h:25
HcalMahiPulseOffsetsGPU::product_
cms::cuda::ESProduct< Product > product_
Definition: HcalMahiPulseOffsetsGPU.h:33
edm::ParameterSet
Definition: ParameterSet.h:47
HcalMahiPulseOffsetsGPU::getProduct
Product const & getProduct(cudaStream_t) const
Definition: HcalMahiPulseOffsetsGPU.cc:18
HcalMahiPulseOffsetsGPU::Product
Definition: HcalMahiPulseOffsetsGPU.h:13
HcalMahiPulseOffsetsGPU
Definition: HcalMahiPulseOffsetsGPU.h:11
HcalMahiPulseOffsetsGPU::~HcalMahiPulseOffsetsGPU
~HcalMahiPulseOffsetsGPU()=default
ParameterSet.h
ESProduct.h