Project
Loading...
Searching...
No Matches
o2::vertexing::device::GPUInterface Class Reference

#include <GPUInterface.h>

Public Member Functions

 GPUInterface (GPUInterface &other)=delete
 
void operator= (const GPUInterface &)=delete
 
void registerBuffer (void *, size_t)
 
void unregisterBuffer (void *addr)
 
void allocDevice (void **, size_t)
 
void freeDevice (void *)
 
StreamgetStream (unsigned short N=0)
 
StreamgetNextStream ()
 

Static Public Member Functions

static GPUInterfaceInstance ()
 

Protected Member Functions

 GPUInterface (size_t N=1)
 
 ~GPUInterface ()
 
void resize (size_t)
 

Protected Attributes

std::atomic< unsigned shortmLastUsedStream {0}
 
std::vector< std::thread > mPool {}
 
std::vector< StreammStreams {}
 

Static Protected Attributes

static GPUInterfacesGPUInterface
 

Detailed Description

Definition at line 40 of file GPUInterface.h.

Constructor & Destructor Documentation

◆ GPUInterface() [1/2]

o2::vertexing::device::GPUInterface::GPUInterface ( GPUInterface other)
delete

◆ GPUInterface() [2/2]

o2::vertexing::device::GPUInterface::GPUInterface ( size_t  N = 1)
protected

◆ ~GPUInterface()

o2::vertexing::device::GPUInterface::~GPUInterface ( )
protected

Member Function Documentation

◆ allocDevice()

void o2::vertexing::device::GPUInterface::allocDevice ( void **  ,
size_t   
)

◆ freeDevice()

void o2::vertexing::device::GPUInterface::freeDevice ( void )

◆ getNextStream()

Stream & o2::vertexing::device::GPUInterface::getNextStream ( )

◆ getStream()

Stream & o2::vertexing::device::GPUInterface::getStream ( unsigned short  N = 0)

◆ Instance()

static GPUInterface * o2::vertexing::device::GPUInterface::Instance ( )
static

◆ operator=()

void o2::vertexing::device::GPUInterface::operator= ( const GPUInterface )
delete

◆ registerBuffer()

void o2::vertexing::device::GPUInterface::registerBuffer ( void ,
size_t   
)

◆ resize()

void o2::vertexing::device::GPUInterface::resize ( size_t  )
protected

◆ unregisterBuffer()

void o2::vertexing::device::GPUInterface::unregisterBuffer ( void addr)

Member Data Documentation

◆ mLastUsedStream

std::atomic<unsigned short> o2::vertexing::device::GPUInterface::mLastUsedStream {0}
protected

Definition at line 62 of file GPUInterface.h.

◆ mPool

std::vector<std::thread> o2::vertexing::device::GPUInterface::mPool {}
protected

Definition at line 64 of file GPUInterface.h.

◆ mStreams

std::vector<Stream> o2::vertexing::device::GPUInterface::mStreams {}
protected

Definition at line 65 of file GPUInterface.h.

◆ sGPUInterface

GPUInterface* o2::vertexing::device::GPUInterface::sGPUInterface
staticprotected

Definition at line 63 of file GPUInterface.h.


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