Raytrix Light Field SDK  5.0
Rx::LFR::Net::Cuda Class Reference

Detailed Description

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

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 CudaDeviceGetDevice (int iIdx)
 Gets a certain CUDA device. Only works if Rx::LFR::Net::Cuda::EnumerateCudaDevices has been called. More...
 
static int GetDeviceCount ()
 Gets the number of available CUDA devices in your system. This method return 0 if Rx::LFR::Net::Cuda::EnumerateCudaDevices has not been called yet. More...
 
static int GetDriverVersion ()
 Gets the installed CUDA driver version. Returns 0 if there is no CUDA driver installed. More...
 
static System::Object ^ GetInterface (Interfaces::ECuda eData)
 Gets the interface defined by Interface::ECuda. More...
 
static int GetRuntimeVersion ()
 Gets the installed CUDA runtime version. More...
 

Member Function Documentation

◆ End()

static void Rx::LFR::Net::Cuda::End ( )
inlinestatic

Finalizes CUDA. This finalizes all CUDA devices.

◆ EnumerateCudaDevices()

static int Rx::LFR::Net::Cuda::EnumerateCudaDevices ( )
inlinestatic

Enumerates and stores all CUDA devices.

Returns
The number of available CUDA devices.

◆ GC_Collect()

static void Rx::LFR::Net::Cuda::GC_Collect ( )
inlinestatic

Forces an immediate garbage collection of temporary CUDA memory.

◆ GetDevice()

static CudaDevice ^ Rx::LFR::Net::Cuda::GetDevice ( int  iIdx)
inlinestatic

Gets a certain CUDA device. Only works if Rx::LFR::Net::Cuda::EnumerateCudaDevices has been called.

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

◆ GetDeviceCount()

static int Rx::LFR::Net::Cuda::GetDeviceCount ( )
inlinestatic

Gets the number of available CUDA devices in your system. This method return 0 if Rx::LFR::Net::Cuda::EnumerateCudaDevices has not been called yet.

Returns
The number of available CUDA devices.

◆ GetDriverVersion()

static int Rx::LFR::Net::Cuda::GetDriverVersion ( )
inlinestatic

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

Returns
The driver version.

◆ GetInterface()

static System::Object ^ Rx::LFR::Net::Cuda::GetInterface ( Interfaces::ECuda  eData)
inlinestatic

Gets the interface defined by Interface::ECuda.

Parameters
eDataThe interface type.
Returns
Null if it fails, else the interface.

◆ GetRuntimeVersion()

static int Rx::LFR::Net::Cuda::GetRuntimeVersion ( )
inlinestatic

Gets the installed CUDA runtime version.

Returns
The runtime version.