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

Records device as the device on which the active host thread executes the device code. Records the thread as using VDPAU interoperability. If the host thread has already initialized the CUDA runtime by calling non-device management runtime functions or if there exists a CUDA driver context active on the host thread, then this call returns cudaErrorSetOnActiveProcess.

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


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA