CUresult cuD3D10GetDevice ( 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 then the call will fail.

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_INVALID_VALUE, CUDA_ERROR_UNKNOWN
Note:
Note that this function may also return error codes from previous, asynchronous launches.
See also:
cuD3D10CtxCreate


Generated by Doxygen for NVIDIA CUDA Library  NVIDIA