CMS 3D CMS Logo

List of all members | Public Types | Static Public Member Functions
cms::cudacompat::HostTraits Struct Reference

#include <HeterogeneousSoA.h>

Public Types

template<typename T >
using unique_ptr = cms::cuda::host::unique_ptr< T >
 

Static Public Member Functions

template<typename T >
static auto make_device_unique (cudaStream_t stream)
 
template<typename T >
static auto make_device_unique (size_t size, cudaStream_t stream)
 
template<typename T >
static auto make_host_unique (cudaStream_t stream)
 
template<typename T >
static auto make_unique (cudaStream_t stream)
 
template<typename T >
static auto make_unique (size_t size, cudaStream_t stream)
 

Detailed Description

Definition at line 86 of file HeterogeneousSoA.h.

Member Typedef Documentation

◆ unique_ptr

Definition at line 88 of file HeterogeneousSoA.h.

Member Function Documentation

◆ make_device_unique() [1/2]

template<typename T >
static auto cms::cudacompat::HostTraits::make_device_unique ( cudaStream_t  stream)
inlinestatic

Definition at line 106 of file HeterogeneousSoA.h.

References cms::cuda::stream.

106  {
107  return cms::cuda::make_device_unique<T>(stream);
108  }
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream

◆ make_device_unique() [2/2]

template<typename T >
static auto cms::cudacompat::HostTraits::make_device_unique ( size_t  size,
cudaStream_t  stream 
)
inlinestatic

Definition at line 111 of file HeterogeneousSoA.h.

References findQualityFiles::size, and cms::cuda::stream.

111  {
112  return cms::cuda::make_device_unique<T>(size, stream);
113  }
size
Write out results.
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream

◆ make_host_unique()

template<typename T >
static auto cms::cudacompat::HostTraits::make_host_unique ( cudaStream_t  stream)
inlinestatic

Definition at line 101 of file HeterogeneousSoA.h.

References cms::cuda::stream.

101  {
102  return cms::cuda::make_host_unique<T>(stream);
103  }
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream

◆ make_unique() [1/2]

template<typename T >
static auto cms::cudacompat::HostTraits::make_unique ( cudaStream_t  stream)
inlinestatic

Definition at line 91 of file HeterogeneousSoA.h.

References cms::cuda::stream.

91  {
92  return cms::cuda::make_host_unique<T>(stream);
93  }
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream

◆ make_unique() [2/2]

template<typename T >
static auto cms::cudacompat::HostTraits::make_unique ( size_t  size,
cudaStream_t  stream 
)
inlinestatic

Definition at line 96 of file HeterogeneousSoA.h.

References findQualityFiles::size, and cms::cuda::stream.

96  {
97  return cms::cuda::make_host_unique<T>(size, stream);
98  }
size
Write out results.
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream