cudaError_t cudaGetDevice ( int *  device  ) 

Returns in *device the device on which the active host thread executes the device code.

Parameters:
device - Returns the device on which the active host thread executes the device code.
Returns:
cudaSuccess
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaGetDeviceCount, cudaSetDevice, cudaGetDeviceProperties, cudaChooseDevice


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA