|  | 
      
        
          | CUresult cuD3D9GetDevice | ( | CUdevice * | pCudaDevice, |  
          |  |  | const char * | pszAdapterName |  |  
          |  | ) |  |  |  |  
Returns in *pCudaDevicethe CUDA-compatible device corresponding to the adapter namepszAdapterNameobtained from EnumDisplayDevices() or IDirect3D9::GetAdapterIdentifier(). 
If no device on the adapter with name pszAdapterNameis CUDA-compatible, then the call will fail. 
 Parameters:
  
    |  | pCudaDevice | - Returned CUDA device corresponding to pszAdapterName |  |  | pszAdapterName | - Adapter name to query for 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:cuD3D9CtxCreate 
 
     |