CMS 3D CMS Logo

SiPixelDigiErrorsCUDA.h
Go to the documentation of this file.
1 #ifndef CUDADataFormats_SiPixelDigi_interface_SiPixelDigiErrorsCUDA_h
2 #define CUDADataFormats_SiPixelDigi_interface_SiPixelDigiErrorsCUDA_h
3 
4 #include <cuda_runtime.h>
5 
11 
13 public:
15 
16  SiPixelDigiErrorsCUDA() = default;
17  explicit SiPixelDigiErrorsCUDA(size_t maxFedWords, SiPixelFormatterErrors errors, cudaStream_t stream);
18  ~SiPixelDigiErrorsCUDA() = default;
19 
24 
26 
28  SiPixelErrorCompactVector const* error() const { return error_d.get(); }
29 
30  using HostDataError = std::pair<SiPixelErrorCompactVector, cms::cuda::host::unique_ptr<SiPixelErrorCompact[]>>;
31  HostDataError dataErrorToHostAsync(cudaStream_t stream) const;
32 
33  void copyErrorToHostAsync(cudaStream_t stream);
34 
35 private:
40 };
41 
42 #endif // CUDADataFormats_SiPixelDigi_interface_SiPixelDigiErrorsCUDA_h
SiPixelDigiErrorsCUDA::operator=
SiPixelDigiErrorsCUDA & operator=(const SiPixelDigiErrorsCUDA &)=delete
SiPixelDigiErrorsCUDA::error
SiPixelErrorCompactVector const * error() const
Definition: SiPixelDigiErrorsCUDA.h:28
SiPixelDigiErrorsCUDA::error
SiPixelErrorCompactVector * error()
Definition: SiPixelDigiErrorsCUDA.h:27
SiPixelFormatterErrors.h
cms::cuda::stream
uint32_t const T *__restrict__ const uint32_t *__restrict__ int32_t int Histo::index_type cudaStream_t stream
Definition: HistoContainer.h:51
device_unique_ptr.h
SiPixelDigiErrorsCUDA::dataErrorToHostAsync
HostDataError dataErrorToHostAsync(cudaStream_t stream) const
Definition: SiPixelDigiErrorsCUDA.cc:27
cms::cuda::SimpleVector< SiPixelErrorCompact >
SiPixelDigiErrorsCUDA::formatterErrors
const SiPixelFormatterErrors & formatterErrors() const
Definition: SiPixelDigiErrorsCUDA.h:25
SiPixelDigiErrorsCUDA::formatterErrors_h
SiPixelFormatterErrors formatterErrors_h
Definition: SiPixelDigiErrorsCUDA.h:39
errors
Definition: errors.py:1
host_unique_ptr.h
SiPixelDigiErrorsCUDA::HostDataError
std::pair< SiPixelErrorCompactVector, cms::cuda::host::unique_ptr< SiPixelErrorCompact[]> > HostDataError
Definition: SiPixelDigiErrorsCUDA.h:30
SiPixelDigiErrorsCUDA::SiPixelDigiErrorsCUDA
SiPixelDigiErrorsCUDA()=default
SimpleVector.h
SiPixelDigiErrorsCUDA
Definition: SiPixelDigiErrorsCUDA.h:12
SiPixelErrorCompact.h
cms::cuda::device::unique_ptr
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
Definition: device_unique_ptr.h:33
SiPixelDigiErrorsCUDA::~SiPixelDigiErrorsCUDA
~SiPixelDigiErrorsCUDA()=default
SiPixelDigiErrorsCUDA::copyErrorToHostAsync
void copyErrorToHostAsync(cudaStream_t stream)
Definition: SiPixelDigiErrorsCUDA.cc:23
SiPixelDigiErrorsCUDA::data_d
cms::cuda::device::unique_ptr< SiPixelErrorCompact[]> data_d
Definition: SiPixelDigiErrorsCUDA.h:36
cms::cuda::host::unique_ptr
std::unique_ptr< T, impl::HostDeleter > unique_ptr
Definition: host_unique_ptr.h:21
SiPixelDigiErrorsCUDA::error_d
cms::cuda::device::unique_ptr< SiPixelErrorCompactVector > error_d
Definition: SiPixelDigiErrorsCUDA.h:37
SiPixelDigiErrorsCUDA::error_h
cms::cuda::host::unique_ptr< SiPixelErrorCompactVector > error_h
Definition: SiPixelDigiErrorsCUDA.h:38
SiPixelFormatterErrors
std::map< cms_uint32_t, std::vector< SiPixelRawDataError > > SiPixelFormatterErrors
Definition: SiPixelFormatterErrors.h:10