Class DriverAPINativeMethods
C# wrapper for the NVIDIA CUDA Driver API (--> cuda.h)
Inheritance
Inherited Members
Namespace: ManagedCuda
Assembly: ManagedCuda.dll
Syntax
public static class DriverAPINativeMethods
Properties
| Improve this Doc View SourceVersion
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. |
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. |
Remarks
Before any call to the CUDA Driver API can be done, the API must be initialized with cuInit(0).