|  | 
Returns in *devicea device handle given an ordinal in the range [0, cuDeviceGetCount()-1]. 
 Parameters:
  
    |  | device | - Returned device handle |  |  | ordinal | - Device number to get handle for | 
 Returns:CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE, CUDA_ERROR_INVALID_DEVICE 
 Note:Note that this function may also return error codes from previous, asynchronous launches.
 See also:cuDeviceComputeCapability, cuDeviceGetAttribute, cuDeviceGetCount, cuDeviceGetName, cuDeviceGetProperties, cuDeviceTotalMem 
 
     |