pub unsafe extern "C" fn cuDeviceGetName(
name: *mut c_char,
len: c_int,
dev: CUdevice,
) -> CUresult
Expand description
\brief Returns an identifier string for the device
Returns an ASCII string identifying the device \p dev in the NULL-terminated string pointed to by \p name. \p len specifies the maximum length of the string that may be returned.
\param name - Returned identifier string for the device \param len - Maximum length of string to store in \p name \param dev - Device to get identifier string for
\return ::CUDA_SUCCESS, ::CUDA_ERROR_DEINITIALIZED, ::CUDA_ERROR_NOT_INITIALIZED, ::CUDA_ERROR_INVALID_CONTEXT, ::CUDA_ERROR_INVALID_VALUE, ::CUDA_ERROR_INVALID_DEVICE \notefnerr
\sa ::cuDeviceGetAttribute, ::cuDeviceGetUuid, ::cuDeviceGetLuid, ::cuDeviceGetCount, ::cuDeviceGet, ::cuDeviceTotalMem, ::cuDeviceGetExecAffinitySupport, ::cudaGetDeviceProperties