Show / Hide Table of Contents

    Class DriverAPINativeMethods

    C# wrapper for the NVIDIA CUDA Driver API (--> cuda.h)

    Inheritance
    System.Object
    DriverAPINativeMethods
    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 DriverAPINativeMethods

    Properties

    | Improve this Doc View Source

    Version

    Gives the version of the wrapped api

    Declaration
    public static Version Version { get; }
    Property Value
    Type Description
    System.Version

    Methods

    cuDriverGetVersion(ref Int32)

    Returns in driverVersion the version number of the installed CUDA driver. This function automatically returns ErrorInvalidValue if the driverVersion argument is NULL.

    Declaration
    public static CUResult cuDriverGetVersion(ref int driverVersion)
    Parameters
    Type Name Description
    System.Int32 driverVersion

    Returns the CUDA driver version

    Returns
    Type Description
    CUResult

    CUDA Error Codes: Success, ErrorInvalidValue.Note that this function may also return error codes from previous, asynchronous launches.

    cuInit(CUInitializationFlags)

    Initializes the driver API and must be called before any other function from the driver API. Currently, the Flags parameter must be None. If cuInit(CUInitializationFlags) has not been called, any function from the driver API will return ErrorNotInitialized.

    Declaration
    public static CUResult cuInit(CUInitializationFlags Flags)
    Parameters
    Type Name Description
    CUInitializationFlags Flags

    Currently, Flags must always be None.

    Returns
    Type Description
    CUResult

    CUDA Error Codes: Success, ErrorInvalidValue, ErrorInvalidDevice.Note that this function may also return error codes from previous, asynchronous launches.

    Remarks

    Before any call to the CUDA Driver API can be done, the API must be initialized with cuInit(0).

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