cudaError_t cudaGetDeviceCount ( int *  count  ) 

Returns in *count the number of devices with compute capability greater or equal to 1.0 that are available for execution. If there is no such device then cudaGetDeviceCount() will return cudaErrorNoDevice. If no driver can be loaded to determine if any such devices exist then cudaGetDeviceCount() will return cudaErrorInsufficientDriver.

Parameters:
count - Returns the number of devices with compute capability greater or equal to 1.0
Returns:
cudaSuccess, cudaErrorNoDevice, cudaErrorInsufficientDriver
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaGetDevice, cudaSetDevice, cudaGetDeviceProperties, cudaChooseDevice


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA