dotnet / dotnet/machinelearning-modelbuilder

"cuda is not available, please confirm you have a cuda-support gpu" on a pc that is compatible "GPU is CUDA compatible"

Open
#2,815 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dockerfile
Stars
285
Forks
66
PR merge metrics
No merged PRs in 30d

Description

**System Information (please complete the following information):**
- Model Builder Version (available in Manage Extensions dialog): 17.15.0.2337001
- Visual Studio Version : 17.8.3

**Describe the bug**
- On which step of the process did you run into an issue:
- During Training
- Clear description of the problem:
I initially tried to use in code to instruct the program to use cuda but had an error
torch.InitializeDeviceType(DeviceType.CUDA);
So tried to use the model builder to check if it works there. But it failed in model builder as well

**To Reproduce**
Steps to reproduce the behavior:
1) Go to Model Builder
2) Choose Text classification under Natural Language Processing
3) Choose Local GPU in Select Training environment( Ensure GPU compatibility confirms "GPU is CUDA compatible")
4) Choose either SQL server/ Text file( either will lead to the same error)
5) Click train. You will see the error "cuda is not available, please confirm you have a cuda-support gpu"
StackTrace
at Microsoft.ML.ModelBuilder.AutoMLService.TextClassificationExperiment.d__13.MoveNext() in /_/src/Microsoft.ML.ModelBuilder.AutoMLService/Experiments/TextClassificationExperiment.cs:line 66
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.ML.ModelBuilder.AutoMLEngine.d__21.MoveNext() in /_/src/Microsoft.ML.ModelBuilder.AutoMLService/AutoMLEngineService/AutoMLEngine.cs:line 161

in ouptut window
start text classification
restore "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\MODELBUILDER\AUTOMLSERVICE\RuntimeManager\torchsharp.gpu.csproj" --configfile "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\MODELBUILDER\AUTOMLSERVICE\RuntimeManager\NuGet.config" -r win-x64 /p:UsingToolXliff=false /p:TorchSharpVersion=0.98.3 /p:TorchSharpCudaRuntimeVersion=1.11.0.1 /p:TensorflowRuntimeVersion=2.3.1 /p:BaseIntermediateOutputPath="C:\Users\nitya\AppData\Local\Temp\ModelBuilder\torchsharp-cuda-0.98.3\obj"
publish "C:\PROGRAM FILES\MICROSOFT VISUAL STUDIO\2022\COMMUNITY\COMMON7\IDE\COMMONEXTENSIONS\MICROSOFT\MODELBUILDER\AUTOMLSERVICE\RuntimeManager\torchsharp.gpu.csproj" -r win-x64 -c Release --no-self-contained -o C:\Users\nitya\AppData\Local\Temp\ModelBuilder\torchsharp-cuda-0.98.3 --no-restore /p:UsingToolXliff=false /p:TorchSharpVersion=0.98.3 /p:TorchSharpCudaRuntimeVersion=1.11.0.1 /p:TensorflowRuntimeVersion=2.3.1 /p:BaseOutputPath="C:\Users\nitya\AppData\Local\Temp\ModelBuilder\torchsharp-cuda-0.98.3\bin\\" /p:BaseIntermediateOutputPath="C:\Users\nitya\AppData\Local\Temp\ModelBuilder\torchsharp-cuda-0.98.3\obj\\"
start installing runtime in C:\Users\nitya\AppData\Local\Temp\ModelBuilder\torchsharp-cuda-0.98.3
Determining projects to restore...
All projects are up-to-date for restore.
MSBuild version 17.8.3+195e7f5a3 for .NET
torchsharp.gpu -> C:\Users\nitya\AppData\Local\Temp\ModelBuilder\torchsharp-cuda-0.98.3\bin\Release\netstandard2.0\win-x64\torchsharp.gpu.dll
torchsharp.gpu -> C:\Users\nitya\AppData\Local\Temp\ModelBuilder\torchsharp-cuda-0.98.3\
install runtime successfully

**Expected behavior**
The training should complete with CUDA as it is compatible

**Screenshots**
If applicable, add screenshots to help explain your problem.
![image](https://github.com/dotnet/machinelearning-modelbuilder/assets/94661751/3fbb369a-2f2e-4a2f-aeec-1178b73269c5)
![image](https://github.com/dotnet/machinelearning-modelbuilder/assets/94661751/70872ea8-9bb4-4347-a7ae-657bd0095e87)

**Additional context**
Add any other context about the problem here.
This problem is not isolated to model builder. I have the issue if i try this in code as well
using TorchSharp;

torch.InitializeDeviceType(DeviceType.CUDA);
Package references




Game Ready Driver
This is the latest. There is no driver updates there after.
![image](https://github.com/dotnet/machinelearning-modelbuilder/assets/94661751/6262f51b-745a-4907-9a66-b7e36e39b5e0)
![image](https://github.com/dotnet/machinelearning-modelbuilder/assets/94661751/7a35dc8c-9279-4796-a925-113c43f5654d)

This is a old machine i am trying out GPU as my surface pro 7 takes ages to train using cpu

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.