CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
EcalPedestalsGPU.h
Go to the documentation of this file.
1 #ifndef CondFormats_EcalObjects_interface_EcalPedestalsGPU_h
2 #define CondFormats_EcalObjects_interface_EcalPedestalsGPU_h
3 
7 
8 #ifndef __CUDACC__
11 #endif // __CUDACC__
12 
14 public:
15  struct Product {
22  };
23 
24 #ifndef __CUDACC__
25 
26  // rearrange pedestals
28 
29  // will call dealloation for Product thru ~Product
30  ~EcalPedestalsGPU() = default;
31 
32  // get device pointers
33  Product const &getProduct(cudaStream_t) const;
34 
35  //
36  static std::string name() { return std::string{"ecalPedestalsGPU"}; }
37 
38 private:
39  // in the future, we need to arrange so to avoid this copy on the host
40  // store eb first then ee
41  std::vector<float, cms::cuda::HostAllocator<float>> mean_x12_;
42  std::vector<float, cms::cuda::HostAllocator<float>> rms_x12_;
43  std::vector<float, cms::cuda::HostAllocator<float>> mean_x6_;
44  std::vector<float, cms::cuda::HostAllocator<float>> rms_x6_;
45  std::vector<float, cms::cuda::HostAllocator<float>> mean_x1_;
46  std::vector<float, cms::cuda::HostAllocator<float>> rms_x1_;
47 
49 #endif // __CUDACC__
50 };
51 
52 #endif // CondFormats_EcalObjects_interface_EcalPedestalsGPU_h
~EcalPedestalsGPU()=default
std::vector< float, cms::cuda::HostAllocator< float > > mean_x1_
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > rms_x1
std::vector< float, cms::cuda::HostAllocator< float > > rms_x12_
std::vector< float, cms::cuda::HostAllocator< float > > mean_x12_
cms::cuda::ESProduct< Product > product_
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > mean_x6
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > rms_x12
std::vector< float, cms::cuda::HostAllocator< float > > rms_x1_
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > mean_x1
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > mean_x12
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > rms_x6
static std::string name()
Product const & getProduct(cudaStream_t) const
EcalPedestalsGPU(EcalPedestals const &)
std::vector< float, cms::cuda::HostAllocator< float > > rms_x6_
std::vector< float, cms::cuda::HostAllocator< float > > mean_x6_