Function rcudnn_sys::cudaChooseDevice[][src]

pub unsafe extern "C" fn cudaChooseDevice(
    device: *mut c_int,
    prop: *const cudaDeviceProp
) -> cudaError_t
Expand description

\brief Select compute-device which best matches criteria

Returns in \p *device the device which has properties that best match \p *prop.

\param device - Device with best match \param prop - Desired device properties

\return ::cudaSuccess, ::cudaErrorInvalidValue \notefnerr \note_init_rt \note_callback

\sa ::cudaGetDeviceCount, ::cudaGetDevice, ::cudaSetDevice, ::cudaGetDeviceProperties