Class DriverAPINativeMethods.ErrorHandling
This section describes the error handling functions of the low-level CUDA driver application programming interface.
Inheritance
Inherited Members
Namespace: ManagedCuda
Assembly: ManagedCuda.dll
Syntax
public static class ErrorHandling
Methods
cuGetErrorName(CUResult, ref IntPtr)
Gets the string representation of an error code enum name.
Sets pStr
to the address of a NULL-terminated string description
of the name of the enum error code error
.
If the error code is not recognized, ErrorInvalidValue
will be returned and pStr
will be set to the NULL address
Declaration
public static CUResult cuGetErrorName(CUResult error, ref IntPtr pStr)
Parameters
Type | Name | Description |
---|---|---|
CUResult | error | Error code to convert to string. |
System.IntPtr | pStr | Address of the string pointer. |
Returns
Type | Description |
---|---|
CUResult | CUDA Error Codes: Success, ErrorInvalidValue. |
cuGetErrorString(CUResult, ref IntPtr)
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, ErrorInvalidValue
will be returned and pStr
will be set to the NULL address
Declaration
public static CUResult cuGetErrorString(CUResult error, ref IntPtr pStr)
Parameters
Type | Name | Description |
---|---|---|
CUResult | error | Error code to convert to string. |
System.IntPtr | pStr | Address of the string pointer. |
Returns
Type | Description |
---|---|
CUResult | CUDA Error Codes: Success, ErrorInvalidValue. |