Raytrix Light Field SDK  5.0
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. EnumerateCudaDevices has to be called at least once before. 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

◆ End()

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

Finalizes CUDA. This finalizes all CUDA devices.

◆ EnumerateCudaDevices()

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

Enumerates and stores all CUDA devices.

If a CUDA device is not recognized, it may be that it does not fulfill the minimum Compute Capability that is required by this runtime.

Returns
The number of available CUDA devices.

◆ GC_Collect()

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

Forces an immediate garbage collection of temporary CUDA memory.

◆ GetDevice()

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

Gets a certain CUDA device.

Parameters
iIdx[in] The index of the CUDA device. Must be in the range of [0, GetDeviceCount() - 1].
Returns
The CUDA device.

◆ GetDeviceCount()

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

Gets the number of available CUDA devices in your system. EnumerateCudaDevices has to be called at least once before.

Returns
The number of available CUDA devices.

◆ GetDriverVersion()

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.

◆ GetImpl() [1/2]

CCuda_Impl & Rx::LFR::CPimpl< CCuda_Impl , Interfaces::ECuda::ID >::GetImpl
inlineinherited

Gets the non constant implementation.

Returns
The implementation.

◆ GetImpl() [2/2]

const CCuda_Impl & Rx::LFR::CPimpl< CCuda_Impl , Interfaces::ECuda::ID >::GetImpl
inlineinherited

Gets the constant implementation.

Returns
The implementation.

◆ GetInterface() [1/2]

static void* Rx::LFR::CCuda::GetInterface ( Interfaces::ECuda::ID  eData)
static

Gets the interface defined by Interfaces::ECuda.

Parameters
eData[in] The interface type.
Returns
Null if it fails, else the interface.

◆ GetInterface() [2/2]

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
eInterface[in] The interface ID.
Returns
Null if it fails, else the interface.

◆ GetRuntimeVersion()

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

Gets the installed CUDA runtime version.

Returns
The runtime version.

◆ HasInterface()

bool Rx::LFR::CPimpl< CCuda_Impl , Interfaces::ECuda::ID >::HasInterface ( Interfaces::ECuda::ID  eInterface)
inlineinherited

Queries if this object has the given interface.

Parameters
eInterface[in] The interface to query.
Returns
True if this class has the given interface, false if not.