ATLAS Offline Software
Static Public Member Functions | List of all members
CaloRecGPU::Helpers::MemoryManagement< T, indexer >::unary_helper< MemoryContext::CUDAGPU, dummy > Struct Template Reference
Collaboration diagram for CaloRecGPU::Helpers::MemoryManagement< T, indexer >::unary_helper< MemoryContext::CUDAGPU, dummy >:

Static Public Member Functions

static T * allocate (const indexer size)
 
static void deallocate (T *&arr)
 

Detailed Description

template<class T, class indexer>
template<class dummy>
struct CaloRecGPU::Helpers::MemoryManagement< T, indexer >::unary_helper< MemoryContext::CUDAGPU, dummy >

Definition at line 494 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.

Member Function Documentation

◆ allocate()

template<class T , class indexer >
template<class dummy >
static T* CaloRecGPU::Helpers::MemoryManagement< T, indexer >::unary_helper< MemoryContext::CUDAGPU, dummy >::allocate ( const indexer  size)
inlinestatic

Definition at line 496 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.

497  {
498  return static_cast<T *>(CUDA_Helpers::allocate(sizeof(T) * size));
499  }

◆ deallocate()

template<class T , class indexer >
template<class dummy >
static void CaloRecGPU::Helpers::MemoryManagement< T, indexer >::unary_helper< MemoryContext::CUDAGPU, dummy >::deallocate ( T *&  arr)
inlinestatic

Definition at line 501 of file Calorimeter/CaloRecGPU/CaloRecGPU/Helpers.h.

502  {
504  }

The documentation for this struct was generated from the following file:
CaloRecGPU::CUDA_Helpers::deallocate
void deallocate(void *address)
Deallocates address in GPU memory.
python.setupRTTAlg.size
int size
Definition: setupRTTAlg.py:39
CaloRecGPU::CUDA_Helpers::allocate
void * allocate(const size_t num)
Allocates and returns the address of num bytes from GPU memory.
TSU::T
unsigned long long T
Definition: L1TopoDataTypes.h:35