Project
Loading...
Searching...
No Matches
o2::gpu::GPUMemoryResource Class Reference

#include <GPUMemoryResource.h>

Public Types

enum  MemoryType {
  MEMORY_HOST = 1 , MEMORY_GPU = 2 , MEMORY_INPUT_FLAG = 4 , MEMORY_INPUT = 7 ,
  MEMORY_OUTPUT_FLAG = 8 , MEMORY_OUTPUT = 11 , MEMORY_INOUT = 15 , MEMORY_SCRATCH = 16 ,
  MEMORY_SCRATCH_HOST = 17 , MEMORY_EXTERNAL = 32 , MEMORY_PERMANENT = 64 , MEMORY_CUSTOM = 128 ,
  MEMORY_CUSTOM_TRANSFER = 256 , MEMORY_STACK = 512
}
 
enum  AllocationType { ALLOCATION_AUTO = 0 , ALLOCATION_INDIVIDUAL = 1 , ALLOCATION_GLOBAL = 2 }
 

Public Member Functions

 GPUMemoryResource (GPUProcessor *proc, void *(GPUProcessor::*setPtr)(void *), MemoryType type, const char *name="")
 
 GPUMemoryResource (const GPUMemoryResource &)=default
 
voidSetPointers (void *ptr)
 
voidSetDevicePointers (void *ptr)
 
voidPtr ()
 
voidPtrDevice ()
 
size_t Size () const
 
const charName () const
 
MemoryType Type () const
 

Friends

class GPUReconstruction
 
class GPUReconstructionCPU
 

Detailed Description

Definition at line 51 of file GPUMemoryResource.h.

Member Enumeration Documentation

◆ AllocationType

Enumerator
ALLOCATION_AUTO 
ALLOCATION_INDIVIDUAL 
ALLOCATION_GLOBAL 

Definition at line 73 of file GPUMemoryResource.h.

◆ MemoryType

Enumerator
MEMORY_HOST 
MEMORY_GPU 
MEMORY_INPUT_FLAG 
MEMORY_INPUT 
MEMORY_OUTPUT_FLAG 
MEMORY_OUTPUT 
MEMORY_INOUT 
MEMORY_SCRATCH 
MEMORY_SCRATCH_HOST 
MEMORY_EXTERNAL 
MEMORY_PERMANENT 
MEMORY_CUSTOM 
MEMORY_CUSTOM_TRANSFER 
MEMORY_STACK 

Definition at line 57 of file GPUMemoryResource.h.

Constructor & Destructor Documentation

◆ GPUMemoryResource() [1/2]

o2::gpu::GPUMemoryResource::GPUMemoryResource ( GPUProcessor proc,
void *(GPUProcessor::*)(void *)  setPtr,
MemoryType  type,
const char name = "" 
)
inline

Definition at line 77 of file GPUMemoryResource.h.

◆ GPUMemoryResource() [2/2]

o2::gpu::GPUMemoryResource::GPUMemoryResource ( const GPUMemoryResource )
default

Member Function Documentation

◆ Name()

const char * o2::gpu::GPUMemoryResource::Name ( ) const
inline

Definition at line 90 of file GPUMemoryResource.h.

◆ Ptr()

void * o2::gpu::GPUMemoryResource::Ptr ( )
inline

Definition at line 87 of file GPUMemoryResource.h.

◆ PtrDevice()

void * o2::gpu::GPUMemoryResource::PtrDevice ( )
inline

Definition at line 88 of file GPUMemoryResource.h.

◆ SetDevicePointers()

void * o2::gpu::GPUMemoryResource::SetDevicePointers ( void ptr)
inline

Definition at line 86 of file GPUMemoryResource.h.

◆ SetPointers()

void * o2::gpu::GPUMemoryResource::SetPointers ( void ptr)
inline

Definition at line 82 of file GPUMemoryResource.h.

◆ Size()

size_t o2::gpu::GPUMemoryResource::Size ( ) const
inline

Definition at line 89 of file GPUMemoryResource.h.

◆ Type()

MemoryType o2::gpu::GPUMemoryResource::Type ( ) const
inline

Definition at line 91 of file GPUMemoryResource.h.

Friends And Related Symbol Documentation

◆ GPUReconstruction

friend class GPUReconstruction
friend

Definition at line 53 of file GPUMemoryResource.h.

◆ GPUReconstructionCPU

Definition at line 54 of file GPUMemoryResource.h.


The documentation for this class was generated from the following file: