CudaDevice

struct CudaDevice

Wrapper around CUdevice.

Public Functions

std::string name() const

Returns the name of the current device

int attribute(CUdevice_attribute key) const

Returns the value of this device for the given attribute.

int ordinal() const

Returns the ordinal number associated with this device in CUDA.

std::string uuid() const

Returns the device’s 128-bit UUID as a string in hexadecimal notation.

inline CUdevice get() const

Returns the underlying CUcontext.

Public Static Functions

static int count()

Returns the number of CUDA-capable devices in the current context.

static CudaDevice current()

Returns the device associated with the current CudaContextHandle.