CMS 3D CMS Logo

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

#include <HeterogeneousSoA.h>

Public Types

template<typename T >
using unique_ptr = std::unique_ptr< T >
 

Static Public Member Functions

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

Detailed Description

Definition at line 116 of file HeterogeneousSoA.h.

Member Typedef Documentation

◆ unique_ptr

template<typename T >
using cms::cudacompat::CPUTraits::unique_ptr = std::unique_ptr<T>

Definition at line 118 of file HeterogeneousSoA.h.

Member Function Documentation

◆ make_device_unique() [1/2]

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

Definition at line 136 of file HeterogeneousSoA.h.

136  {
137  return std::make_unique<T>();
138  }

◆ make_device_unique() [2/2]

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

Definition at line 141 of file HeterogeneousSoA.h.

References findQualityFiles::size.

141  {
142  return std::make_unique<T>(size);
143  }
size
Write out results.

◆ make_host_unique()

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

Definition at line 131 of file HeterogeneousSoA.h.

131  {
132  return std::make_unique<T>();
133  }

◆ make_unique() [1/2]

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

Definition at line 121 of file HeterogeneousSoA.h.

121  {
122  return std::make_unique<T>();
123  }

◆ make_unique() [2/2]

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

Definition at line 126 of file HeterogeneousSoA.h.

References findQualityFiles::size.

126  {
127  return std::make_unique<T>(size);
128  }
size
Write out results.