Provides methods for interacting with a certain CUDA device.
Inherits Rx::Net::NativeInterfaceWrapper< Rx::LFR::CCudaDevice, Rx::LFR::Net::Interfaces::ECudaDevice >.
Public Member Functions | |
CudaDevice (const Rx::LFR::CCudaDevice &xNative) | |
Constructor. More... | |
~CudaDevice () | |
Destructor. More... | |
void | GetComputeCapability (RX_OUT unsigned% uMajor, RX_OUT unsigned% uMinor) |
Gets the compute capability of this CUDA device. The minimum compute capability is 2.0. More... | |
int | GetDeviceID () |
Gets the ID of this CUDA device. More... | |
virtual System::Object^ | GetInterface (Rx::LFR::Net::Interfaces::ECudaDevice eData) |
Gets the interface. More... | |
IParameters< Rx::LFR::Net::Params::ECudaDevice >^ | GetParams () |
Gets the parameters access interface. More... | |
bool | HasComputeCapability (unsigned uMajor, unsigned uMinor) |
Queries if this CUDA device supports the given compute capability. More... | |
bool | Lock (int iTimeout) |
Locks this CUDA device. This waits until locked or until the timeout has been expired. More... | |
void | MakeCurrent () |
Makes this CUDA device current for the calling thread. More... | |
void | QueryMemoryInfo (RX_OUT System::UInt64% nFree, RX_OUT System::UInt64% nTotal) |
Queries the free and the total amount of available device memory in bytes. More... | |
void | Unlock () |
Unlocks this CUDA device. Does nothing if not locked by the calling thread. More... | |
|
inline |
Constructor.
Wraps the given native instance instead of creating an own instance. The given native instance must be valid for the lifetime of this instance.
xNative | [in] The native instance to be wrapped by this class. |
|
inline |
Destructor.
|
inline |
Gets the compute capability of this CUDA device. The minimum compute capability is 2.0.
uMajor | [out] The major part of the compute capability version. |
uMinor | [out] The minor part of the compute capability version. |
|
inline |
Gets the ID of this CUDA device.
|
inlinevirtualinherited |
Gets the interface.
|
inline |
Gets the parameters access interface.
|
inline |
Queries if this CUDA device supports the given compute capability.
uMajor | The major part of the compute capability version. |
uMinor | The minor part of the compute capability version. |
|
inline |
Locks this CUDA device. This waits until locked or until the timeout has been expired.
iTimeout | Timeout in milliseconds. -1 will wait infinetly. |
|
inline |
Makes this CUDA device current for the calling thread.
|
inline |
Queries the free and the total amount of available device memory in bytes.
nFree | [out] Free device memory in bytes. |
nTotal | [out] Total device memory in bytes. |
|
inline |
Unlocks this CUDA device. Does nothing if not locked by the calling thread.