Namespace: Rx::LFR – Class: CCudaDevice – Header: Rx.LFR/CudaDevice.h

CCudaDevice Class

C++
#include "Rx.LFR/CudaDevice.h"
class CCudaDevice : public CParametersPimpl<CCudaDevice_Impl, ECudaDeviceParam, ECudaDeviceInterface>

Provides methods for interacting with a certain CUDA device.

Constructors

CCudaDevice()

Default constructor.

CCudaDevice(pxImpl)

Constructor. Only for internal purposes.

CCudaDevice(xCudaDevice)

Move constructor.

Destructor

~CCudaDevice()

Destructor.

Methods

QueryMemoryInfo(nFree, nTotal)

Queries the free and the total amount of available device memory in bytes.

GetComputeCapability(uMajor, uMinor)

Gets the compute capability of this CUDA device. The minimum compute capability is 3.0.

HasComputeCapability(uMajor, uMinor)

Queries if this CUDA device supports the given compute capability.

GetDeviceID()

Gets the ID of this CUDA device.

MakeCurrent()

Makes this CUDA device current for the calling thread.

Lock(iTimeout)

Locks this CUDA device. This waits until locked or until the timeout has been expired.

Unlock()

Unlocks this CUDA device. Does nothing if not locked by the calling thread.

GetParams()

Returns the parameters class that can be used to work with parameters of this class.

(Inherited from CParametersPimpl)
GetParams()

Returns the constant parameters class that can be used to work with parameters of this class.

(Inherited from CParametersPimpl)
GetImpl()

Gets the non constant implementation.

(Inherited from CPimpl)
GetImpl()

Gets the constant implementation.

(Inherited from CPimpl)
GetInterface(eInterface)

Gets the interface defined by the given interface ID.

(Inherited from CPimpl)
GetInterface(eInterface)

Gets the interface defined by the given interface ID.

(Inherited from CPimpl)
GetInterface(eInterface)

Gets the interface defined by the given interface ID.

(Inherited from CPimpl)
GetInterface(eInterface)

Gets the interface defined by the given interface ID.

(Inherited from CPimpl)
HasInterface(eInterface)

Queries if this object has the given interface.

(Inherited from CPimpl)

Operators

operator=(xCudaDevice)

Move assignment operator.

Typedefs

EnumType

The type of the parameter enum. Is used by managed wrapper classes.

(Inherited from CParametersPimpl)
EnumInterfaceType

The type of the interface enum. Is used by managed wrapper classes.

(Inherited from CParametersPimpl)