cudaError_t cudaVDPAUSetVDPAUDevice ( int  device,
VdpDevice  vdpDevice,
VdpGetProcAddress *  vdpGetProcAddress 
)

Records vdpDevice as the VdpDevice for VDPAU interoperability with the CUDA device device and sets device as the current device for the calling host thread.

If device has already been initialized then this call will fail with the error cudaErrorSetOnActiveProcess. In this case it is necessary to reset device using cudaDeviceReset() before VDPAU interoperability on device may be enabled.

Parameters:
device - Device to use for VDPAU interoperability
vdpDevice - The VdpDevice to interoperate with
vdpGetProcAddress - VDPAU's VdpGetProcAddress function pointer
Returns:
cudaSuccess, cudaErrorInvalidDevice, cudaErrorSetOnActiveProcess
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cudaGraphicsVDPAURegisterVideoSurface, cudaGraphicsVDPAURegisterOutputSurface, cudaDeviceReset


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA