CMS 3D CMS Logo

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

#include <HeterogeneousSoA.h>

Public Types

template<typename T >
using unique_ptr = cms::cuda::device::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 56 of file HeterogeneousSoA.h.

Member Typedef Documentation

◆ unique_ptr

Definition at line 58 of file HeterogeneousSoA.h.

Member Function Documentation

◆ make_device_unique() [1/2]

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

Definition at line 76 of file HeterogeneousSoA.h.

References cms::cuda::stream.

76  {
77  return cms::cuda::make_device_unique<T>(stream);
78  }
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::GPUTraits::make_device_unique ( size_t  size,
cudaStream_t  stream 
)
inlinestatic

Definition at line 81 of file HeterogeneousSoA.h.

References cms::cuda::stream.

81  {
82  return cms::cuda::make_device_unique<T>(size, stream);
83  }
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::GPUTraits::make_host_unique ( cudaStream_t  stream)
inlinestatic

Definition at line 71 of file HeterogeneousSoA.h.

References cms::cuda::stream.

71  {
72  return cms::cuda::make_host_unique<T>(stream);
73  }
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::GPUTraits::make_unique ( cudaStream_t  stream)
inlinestatic

Definition at line 61 of file HeterogeneousSoA.h.

References cms::cuda::stream.

61  {
62  return cms::cuda::make_device_unique<T>(stream);
63  }
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::GPUTraits::make_unique ( size_t  size,
cudaStream_t  stream 
)
inlinestatic

Definition at line 66 of file HeterogeneousSoA.h.

References cms::cuda::stream.

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