Skip to main content

cudaGetErrorName

Function cudaGetErrorName 

Source
pub unsafe extern "C" fn cudaGetErrorName(
    error: cudaError_t,
) -> *const c_char
Expand description

Returns the string representation of an error code enum name.

Returns a string containing the name of an error code in the enum. If the error code is not recognized, “unrecognized error code” is returned.

§Parameters

  • error: Error code to convert to string

§Return value

char* pointer to a NULL-terminated string.

See also: cudaGetErrorString, cudaGetLastError, cudaPeekAtLastError, cudaError, cuGetErrorName.