src
CUDADataFormats
Vertex
interface
ZVertexSoAHeterogeneousHost.h
Go to the documentation of this file.
1
#ifndef CUDADataFormats_Vertex_ZVertexHeterogeneousHost_H
2
#define CUDADataFormats_Vertex_ZVertexHeterogeneousHost_H
3
4
#include <cstdint>
5
6
#include "
CUDADataFormats/Vertex/interface/ZVertexUtilities.h
"
7
#include "
CUDADataFormats/Common/interface/PortableHostCollection.h
"
8
9
// TODO: The class is created via inheritance of the PortableHostCollection.
10
// This is generally discouraged, and should be done via composition.
11
// See: https://github.com/cms-sw/cmssw/pull/40465#discussion_r1067364306
12
template
<
int
32_t S>
13
class
ZVertexSoAHeterogeneousHost
:
public
cms::cuda::PortableHostCollection
<ZVertexSoAHeterogeneousLayout<>> {
14
public
:
15
explicit
ZVertexSoAHeterogeneousHost
() :
cms
::
cuda
::
PortableHostCollection
<
ZVertexSoAHeterogeneousLayout
<>>(
S
) {}
16
17
// Constructor which specifies the SoA size and CUDA stream
18
explicit
ZVertexSoAHeterogeneousHost
(cudaStream_t
stream
)
19
:
PortableHostCollection
<
ZVertexSoAHeterogeneousLayout
<>>(
S
,
stream
) {}
20
};
21
22
using
ZVertexSoAHost
=
ZVertexSoAHeterogeneousHost<zVertex::utilities::MAXTRACKS>
;
23
24
#endif // CUDADataFormats_Vertex_ZVertexHeterogeneousHost_H
cms::cuda::stream
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
Definition:
HistoContainer.h:51
PortableHostCollection.h
cms::cuda::PortableHostCollection
Definition:
PortableHostCollection.h:13
PortableHostCollection
Definition:
PortableHostCollection.h:15
S
Definition:
CSCDBL1TPParametersExtended.h:16
cms
Namespace of DDCMS conversion namespace.
Definition:
ProducerAnalyzer.cc:41
ZVertexSoAHeterogeneousLayout
Definition:
ZVertexUtilities.h:15
ZVertexSoAHeterogeneousHost::ZVertexSoAHeterogeneousHost
ZVertexSoAHeterogeneousHost()
Definition:
ZVertexSoAHeterogeneousHost.h:15
ecalDigis_cff.cuda
cuda
Definition:
ecalDigis_cff.py:29
ZVertexSoAHeterogeneousHost::ZVertexSoAHeterogeneousHost
ZVertexSoAHeterogeneousHost(cudaStream_t stream)
Definition:
ZVertexSoAHeterogeneousHost.h:18
ZVertexSoAHeterogeneousHost
Definition:
ZVertexSoAHeterogeneousHost.h:13
ZVertexUtilities.h
Generated for CMSSW Reference Manual by
1.8.14