Show / Hide Table of Contents

    Class DriverAPINativeMethods.ErrorHandling

    This section describes the error handling functions of the low-level CUDA driver application programming interface.

    Inheritance
    System.Object
    DriverAPINativeMethods.ErrorHandling
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    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.

    • Improve this Doc
    • View Source
    Back to top Generated by DocFX