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.

96 Module Documentation3.18 Device ManagementFunctions• CUresult cuDeviceComputeCapability (int ∗major, int ∗minor, CUdevice dev)Returns the compute capability of the device.• CUresult cuDeviceGet (CUdevice ∗device, int ordinal)Returns a handle to a compute device.• CUresult cuDeviceGetAttribute (int ∗pi, CUdevice_attribute attrib, CUdevice dev)Returns information about the device.• CUresult cuDeviceGetCount (int ∗count)Returns the number of compute-capable devices.• CUresult cuDeviceGetName (char ∗name, int len, CUdevice dev)Returns an identifer string for the device.• CUresult cuDeviceGetProperties (CUdevprop ∗prop, CUdevice dev)Returns properties for a selected device.• CUresult cuDeviceTotalMem (unsigned int ∗bytes, CUdevice dev)Returns the total amount of memory on the device.3.18.1 Detailed DescriptionThis section describes the device management functions of the low-level <strong>CUDA</strong> driver application programming interface.3.18.2 Function Documentation3.18.2.1 CUresult cuDeviceComputeCapability (int ∗ major, int ∗ minor, CUdevice dev)Returns in ∗major and ∗minor the major and minor revision numbers that define the compute capability of thedevice dev.Parameters:major - Major revision numberminor - Minor revision numberdev - Device handleReturns: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_DEVICENote that this function may also return error codes from previous, asynchronous launches.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!