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)
 

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 101 of file HeterogeneousSoA.h.

101  {
102  return cms::cuda::make_device_unique<T>(stream);
103  }

References cms::cuda::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 106 of file HeterogeneousSoA.h.

106  {
107  return cms::cuda::make_device_unique<T>(size, stream);
108  }

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

◆ make_host_unique()

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

Definition at line 96 of file HeterogeneousSoA.h.

96  {
97  return cms::cuda::make_host_unique<T>(stream);
98  }

References cms::cuda::stream.

◆ make_unique()

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

Definition at line 91 of file HeterogeneousSoA.h.

91  {
92  return cms::cuda::make_host_unique<T>(stream);
93  }

References cms::cuda::stream.

cms::cuda::stream
cudaStream_t stream
Definition: HistoContainer.h:57
findQualityFiles.size
size
Write out results.
Definition: findQualityFiles.py:443