12.07.2015 Views

NVIDIA CUDA

NVIDIA CUDA

NVIDIA CUDA

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.18 Device Management 993.18.2.4 CUresult cuDeviceGetCount (int ∗ count)Returns in ∗count the number of devices with compute capability greater than or equal to 1.0 that are available forexecution. If there is no such device, cuDeviceGetCount() returns 0.Parameters:count - Returned number of compute-capable devicesReturns:Note:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_VALUESee also:Note that this function may also return error codes from previous, asynchronous launches.cuDeviceComputeCapability, cuDeviceGetAttribute, cuDeviceGetName, cuDeviceGet, cuDeviceGetProperties,cuDeviceTotalMem3.18.2.5 CUresult cuDeviceGetName (char ∗ name, int len, CUdevice dev)Returns an ASCII string identifying the device dev in the NULL-terminated string pointed to by name. len specifiesthe maximum length of the string that may be returned.Parameters:name - Returned identifier string for the devicelen - Maximum length of string to store in namedev - Device to get identifier string forReturns:Note:<strong>CUDA</strong>_SUCCESS, <strong>CUDA</strong>_ERROR_DEINITIALIZED, <strong>CUDA</strong>_ERROR_NOT_INITIALIZED, <strong>CUDA</strong>_-ERROR_INVALID_CONTEXT, <strong>CUDA</strong>_ERROR_INVALID_VALUE, <strong>CUDA</strong>_ERROR_INVALID_DEVICESee also:Note that this function may also return error codes from previous, asynchronous launches.cuDeviceComputeCapability, cuDeviceGetAttribute, cuDeviceGetCount, cuDeviceGet, cuDeviceGetProperties,cuDeviceTotalMem3.18.2.6 CUresult cuDeviceGetProperties (CUdevprop ∗ prop, CUdevice dev)Returns in ∗prop the properties of device dev. The CUdevprop structure is defined as:Generated on Wed Apr 1 16:11:42 2009 for <strong>NVIDIA</strong> <strong>CUDA</strong> Library by Doxygen

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!