CUresult cuD3D11GetDevice ( CUdevice pCudaDevice,
IDXGIAdapter *  pAdapter 
)

Returns in *pCudaDevice the CUDA-compatible device corresponding to the adapter pAdapter obtained from IDXGIFactory::EnumAdapters.

If no device on pAdapter is CUDA-compatible the call will return CUDA_ERROR_NO_DEVICE.

Parameters:
pCudaDevice - Returned CUDA device corresponding to pAdapter
pAdapter - Adapter to query for CUDA device
Returns:
CUDA_SUCCESS, CUDA_ERROR_DEINITIALIZED, CUDA_ERROR_NOT_INITIALIZED, CUDA_ERROR_NO_DEVICE, CUDA_ERROR_UNKNOWN
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cuD3D11CtxCreate


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA