6.13. Error Handling
This section describes the error handling functions of the low-level CUDA driver application programming interface.
Functions
- CUresult cuGetErrorName(CUresult error, const char **pStr)
Gets the string representation of an error code enum name.
- CUresult cuGetErrorString(CUresult error, const char **pStr)
Gets the string description of an error code.
6.13.1. Functions
-
CUresult cuGetErrorName(CUresult error, const char **pStr)
Gets the string representation of an error code enum name.
Sets
*pStrto the address of a NULL-terminated string representation of the name of the enum error codeerror. If the error code is not recognized, CUDA_ERROR_INVALID_VALUE will be returned and*pStrwill be set to the NULL address.See also
CUresult, ::cudaGetErrorName
- Parameters
error – - Error code to convert to string
pStr – - Address of the string pointer.
- Returns
-
CUresult cuGetErrorString(CUresult error, const char **pStr)
Gets the string description of an error code.
Sets
*pStrto the address of a NULL-terminated string description of the error codeerror. If the error code is not recognized, CUDA_ERROR_INVALID_VALUE will be returned and*pStrwill be set to the NULL address.See also
CUresult, ::cudaGetErrorString
- Parameters
error – - Error code to convert to string
pStr – - Address of the string pointer.
- Returns