CUresult cuCtxGetDevice ( CUdevice device  ) 

Returns in *device the ordinal of the current context's device.

Parameters:
device - Returned device ID for the current context
Returns:
CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_INVALID_CONTEXT, CUDA_ERROR_INVALID_VALUE,
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cuCtxAttach, cuCtxCreate, cuCtxDestroy, cuCtxDetach, cuCtxGetApiVersion, cuCtxGetCacheConfig, cuCtxGetLimit, cuCtxPopCurrent, cuCtxPushCurrent, cuCtxSetCacheConfig, cuCtxSetLimit, cuCtxSynchronize


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA