Hello! In my C# project I’m trying to write wrapper for Driver API
using System;
using System.Runtime.InteropServices;
namespace test
{
public class DriverAPI
{
[DllImport(@"F:\deploy\nvcuda64.dll")]
private static extern int cuInit(uint flag);
public static void CuInit(uint flag)
{
int err = cuInit(flag);
if (err != 0)
Console.WriteLine(err);
}
static void Main()
{
CuInit(0);
}
}
}
but after running this code, I’m getting error 100:
/**
* This indicates that no CUDA-capable devices were detected by the installed
* CUDA driver.
*/
CUDA_ERROR_NO_DEVICE = 100
I don’t understand why, because I have 2 CUDA-capable devices on my computer with Windows 10