cudaError_t cudaWGLGetDevice ( int *  device,
HGPUNV  hGpu 
)

Returns the CUDA device associated with a hGpu, if applicable.

Parameters:
device - Returns the device associated with hGpu, or -1 if hGpu is not a compute device.
hGpu - Handle to a GPU, as queried via WGL_NV_gpu_affinity()
Returns:
cudaSuccess
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
WGL_NV_gpu_affinity, cudaGLSetGLDevice


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA