cuda.bindings._v2.driver.get_error_name#

cuda.bindings._v2.driver.get_error_name(int error) → str#

Gets the string representation of an error code enum name.

Sets *p_str to the address of a NULL-terminated string representation of the name of the enum error code error. If the error code is not recognized, CUDA_ERROR_INVALID_VALUE will be returned and *p_str will be set to the NULL address.

Parameters:

error (Result) – Error code to convert to string.

Returns:

Address of the string pointer.

Return type:

str

See also

cuGetErrorName