CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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
SiPixelErrorCompactVector const * error() const
cms::cuda::host::unique_ptr< SiPixelErrorCompactVector > error_h
std::pair< SiPixelErrorCompactVector, cms::cuda::host::unique_ptr< SiPixelErrorCompact[]>> HostDataError
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
std::unique_ptr< T, impl::DeviceDeleter > unique_ptr
SiPixelDigiErrorsCUDA & operator=(const SiPixelDigiErrorsCUDA &)=delete
cms::cuda::device::unique_ptr< SiPixelErrorCompact[]> data_d
cms::cuda::device::unique_ptr< SiPixelErrorCompactVector > error_d
std::map< cms_uint32_t, std::vector< SiPixelRawDataError >> SiPixelFormatterErrors
~SiPixelDigiErrorsCUDA()=default
SiPixelFormatterErrors formatterErrors_h
HostDataError dataErrorToHostAsync(cudaStream_t stream) const
SiPixelErrorCompactVector * error()
std::unique_ptr< T, impl::HostDeleter > unique_ptr
void copyErrorToHostAsync(cudaStream_t stream)
SiPixelDigiErrorsCUDA()=default
const SiPixelFormatterErrors & formatterErrors() const