Records pD3D11Device as the Direct3D 11 device to use for Direct3D 11 interoperability on this host thread. In order to use Direct3D 11 interoperability, this call must be made before any non-device management CUDA runtime calls on this thread. In that case, this call will return cudaErrorSetOnActiveProcess.
Successful context creation on pD3D11Device will increase the internal reference count on pD3D11Device. This reference count will be decremented upon destruction of this context through cudaThreadExit().