Skip to main content

cuGetErrorString

Function cuGetErrorString 

Source
pub unsafe extern "C" fn cuGetErrorString(
    error: CUresult,
    pStr: *mut *const c_char,
) -> CUresult
Expand description

Gets the string description of an error code.

Sets *pStr to the address of a NULL-terminated string description of the error code error. If the error code is not recognized, cudaError_enum::CUDA_ERROR_INVALID_VALUE will be returned and *pStr will be set to the NULL address.

§Parameters

  • error: Error code to convert to string.
  • pStr: Address of the string pointer.

§Return value

See also: CUresult, cudaGetErrorString.