Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
CondFormats
HcalObjects
interface
HcalGainsGPU.h
Go to the documentation of this file.
1
#ifndef CondFormats_HcalObjects_interface_HcalGainsGPU_h
2
#define CondFormats_HcalObjects_interface_HcalGainsGPU_h
3
4
#include "
CondFormats/HcalObjects/interface/HcalGains.h
"
5
#include "
FWCore/Utilities/interface/propagate_const_array.h
"
6
#include "
HeterogeneousCore/CUDAUtilities/interface/device_unique_ptr.h
"
7
8
#ifndef __CUDACC__
9
#include "
HeterogeneousCore/CUDAUtilities/interface/HostAllocator.h
"
10
#include "
HeterogeneousCore/CUDACore/interface/ESProduct.h
"
11
#endif
12
13
class
HcalGainsGPU
{
14
public
:
15
struct
Product
{
16
edm::propagate_const_array<cms::cuda::device::unique_ptr<float[]>
>
values
;
17
};
18
19
#ifndef __CUDACC__
20
// rearrange reco params
21
HcalGainsGPU
(
HcalGains
const
&);
22
23
// will trigger deallocation of Product thru ~Product
24
~HcalGainsGPU
() =
default
;
25
26
// get device pointers
27
Product
const
&
getProduct
(cudaStream_t)
const
;
28
29
private
:
30
uint64_t
totalChannels_
;
31
std::vector<float, cms::cuda::HostAllocator<float>>
values_
;
32
33
cms::cuda::ESProduct<Product>
product_
;
34
#endif
35
};
36
37
#endif
HcalGainsGPU::getProduct
Product const & getProduct(cudaStream_t) const
Definition:
HcalGainsGPU.cc:33
HcalGainsGPU::Product::values
edm::propagate_const_array< cms::cuda::device::unique_ptr< float[]> > values
Definition:
HcalGainsGPU.h:16
ESProduct.h
HcalGainsGPU::~HcalGainsGPU
~HcalGainsGPU()=default
HostAllocator.h
HcalGainsGPU::product_
cms::cuda::ESProduct< Product > product_
Definition:
HcalGainsGPU.h:33
cms::cuda::ESProduct
Definition:
ESProduct.h:20
HcalGainsGPU::totalChannels_
uint64_t totalChannels_
Definition:
HcalGainsGPU.h:30
edm::propagate_const_array
Definition:
propagate_const_array.h:61
cond::uint64_t
unsigned long long uint64_t
Definition:
Time.h:13
HcalGainsGPU::HcalGainsGPU
HcalGainsGPU(HcalGains const &)
Definition:
HcalGainsGPU.cc:7
device_unique_ptr.h
HcalGains
Definition:
HcalGains.h:17
HcalGains.h
HcalGainsGPU
Definition:
HcalGainsGPU.h:13
propagate_const_array.h
HcalGainsGPU::Product
Definition:
HcalGainsGPU.h:15
HcalGainsGPU::values_
std::vector< float, cms::cuda::HostAllocator< float > > values_
Definition:
HcalGainsGPU.h:31
Generated for CMSSW Reference Manual by
1.8.5