CMS 3D CMS Logo

HcalRecoParamsGPU.h
Go to the documentation of this file.
1 #ifndef CondFormats_HcalObjects_interface_HcalRecoParamsGPU_h
2 #define CondFormats_HcalObjects_interface_HcalRecoParamsGPU_h
3 
6 
7 #ifndef __CUDACC__
10 #endif
11 
12 class HcalRecoParams;
13 
15 public:
16  struct Product {
19  };
20 
21 #ifndef __CUDACC__
22  // rearrange reco params
24 
25  // will trigger deallocation of Product thru ~Product
26  ~HcalRecoParamsGPU() = default;
27 
28  // get device pointers
29  Product const& getProduct(cudaStream_t) const;
30 
31 private:
33  std::vector<uint32_t, cms::cuda::HostAllocator<uint32_t>> param1_;
34  std::vector<uint32_t, cms::cuda::HostAllocator<uint32_t>> param2_;
35 
37 #endif
38 };
39 
40 #endif
HcalRecoParamsGPU::Product::param2
edm::propagate_const_array< cms::cuda::device::unique_ptr< uint32_t[]> > param2
Definition: HcalRecoParamsGPU.h:18
HostAllocator.h
HcalRecoParamsGPU::Product
Definition: HcalRecoParamsGPU.h:16
HcalRecoParamsGPU::getProduct
Product const & getProduct(cudaStream_t) const
Definition: HcalRecoParamsGPU.cc:29
HcalRecoParamsGPU::param2_
std::vector< uint32_t, cms::cuda::HostAllocator< uint32_t > > param2_
Definition: HcalRecoParamsGPU.h:34
device_unique_ptr.h
HcalRecoParamsGPU::product_
cms::cuda::ESProduct< Product > product_
Definition: HcalRecoParamsGPU.h:36
HcalRecoParamsGPU::~HcalRecoParamsGPU
~HcalRecoParamsGPU()=default
HcalRecoParamsGPU::HcalRecoParamsGPU
HcalRecoParamsGPU(HcalRecoParams const &)
Definition: HcalRecoParamsGPU.cc:7
HcalRecoParamsGPU
Definition: HcalRecoParamsGPU.h:14
cms::cuda::ESProduct
Definition: ESProduct.h:19
edm::propagate_const_array
Definition: propagate_const_array.h:61
propagate_const_array.h
HcalRecoParamsGPU::param1_
std::vector< uint32_t, cms::cuda::HostAllocator< uint32_t > > param1_
Definition: HcalRecoParamsGPU.h:33
HcalRecoParams
Definition: HcalRecoParams.h:9
cond::uint64_t
unsigned long long uint64_t
Definition: Time.h:13
HcalRecoParamsGPU::Product::param1
edm::propagate_const_array< cms::cuda::device::unique_ptr< uint32_t[]> > param1
Definition: HcalRecoParamsGPU.h:17
ESProduct.h
HcalRecoParamsGPU::totalChannels_
uint64_t totalChannels_
Definition: HcalRecoParamsGPU.h:32