Raytrix Light Field SDK  4.0
Logo
Public Member Functions | Static Public Member Functions | List of all members
Rx::LFR::CCuda Class Reference

Detailed Description

Provides information about the CUDA hardware in your system and enables access to available CUDA devices.

Inherits Rx::LFR::CPimpl< CCuda_Impl, Interfaces::ECuda::ID >.

Public Member Functions

CCuda_Impl & GetImpl ()
 Gets the non constant implementation. More...
 
const CCuda_Impl & GetImpl () const
 Gets the constant implementation. More...
 
const void * GetInterface (Interfaces::ECuda::ID eInterface) const
 Gets the interface defined by the given interface ID. More...
 
bool HasInterface (Interfaces::ECuda::ID eInterface)
 Queries if this object has the given interface. More...
 

Static Public Member Functions

static void End ()
 Finalizes CUDA. This finalizes all CUDA devices. More...
 
static int EnumerateCudaDevices ()
 Enumerates and stores all CUDA devices. More...
 
static void GC_Collect ()
 Forces an immediate garbage collection of temporary CUDA memory. More...
 
static const CCudaDeviceGetDevice (int iIdx)
 Gets a certain CUDA device. More...
 
static int GetDeviceCount ()
 Gets the number of available CUDA devices in your system. More...
 
static int GetDriverVersion ()
 Gets the installed CUDA driver version. Returns 0 if there is no CUDA driver installed. More...
 
static void * GetInterface (Interfaces::ECuda::ID eData)
 Gets the interface defined by Interfaces::ECuda. More...
 
static int GetRuntimeVersion ()
 Gets the installed CUDA runtime version. More...
 

Member Function Documentation

static void Rx::LFR::CCuda::End ( )
static

Finalizes CUDA. This finalizes all CUDA devices.

static int Rx::LFR::CCuda::EnumerateCudaDevices ( )
static

Enumerates and stores all CUDA devices.

Returns
The number of available CUDA devices.
static void Rx::LFR::CCuda::GC_Collect ( )
static

Forces an immediate garbage collection of temporary CUDA memory.

static const CCudaDevice& Rx::LFR::CCuda::GetDevice ( int  iIdx)
static

Gets a certain CUDA device.

Parameters
iIdxThe index of the CUDA device. Must be in the range of [0, GetDeviceCount() - 1].
Returns
The CUDA device.
static int Rx::LFR::CCuda::GetDeviceCount ( )
static

Gets the number of available CUDA devices in your system.

Returns
The number of available CUDA devices.
static int Rx::LFR::CCuda::GetDriverVersion ( )
static

Gets the installed CUDA driver version. Returns 0 if there is no CUDA driver installed.

Returns
The driver version.
CCuda_Impl & Rx::LFR::CPimpl< CCuda_Impl , Interfaces::ECuda::ID >::GetImpl ( )
inlineinherited

Gets the non constant implementation.

Returns
The implementation.
const CCuda_Impl & Rx::LFR::CPimpl< CCuda_Impl , Interfaces::ECuda::ID >::GetImpl ( ) const
inlineinherited

Gets the constant implementation.

Returns
The implementation.
static void* Rx::LFR::CCuda::GetInterface ( Interfaces::ECuda::ID  eData)
static

Gets the interface defined by Interfaces::ECuda.

Parameters
eDataThe interface type.
Returns
Null if it fails, else the interface.
const void* Rx::LFR::CPimpl< CCuda_Impl , Interfaces::ECuda::ID >::GetInterface ( Interfaces::ECuda::ID  eInterface) const
inherited

Gets the interface defined by the given interface ID.

Parameters
eInterfaceThe interface ID.
Returns
Null if it fails, else the interface.
static int Rx::LFR::CCuda::GetRuntimeVersion ( )
static

Gets the installed CUDA runtime version.

Returns
The runtime version.
bool Rx::LFR::CPimpl< CCuda_Impl , Interfaces::ECuda::ID >::HasInterface ( Interfaces::ECuda::ID  eInterface)
inlineinherited

Queries if this object has the given interface.

Parameters
eInterfaceThe interface to query.
Returns
True if this class has the given interface, false if not.