microsoft / Windows-Machine-Learning

Samples and Tools for Windows ML.
https://docs.microsoft.com/en-us/windows/ai/
MIT License
1.02k stars 445 forks source link

Cannot create session with GPU device #139

Closed sw6y15 closed 5 years ago

sw6y15 commented 5 years ago

I'm submitting a…

Bug report (I searched for similar issues and did not find one)

Current behavior

WinML UWP

It cannot create learning model session with GPU. image

WinMLRunner

I also tried to use WinMLRunner.exe -model Squeeze.onnx And it crush as below. image

When I try to debug it, it also got error in create learning model session with GPU. image

Minimal reproduction of the problem with instructions

code in UWP _device = new LearningModelDevice(LearningModelDeviceKind.DirectX); _session_gpu = new LearningModelSession(_model, _device);

Environment

Windows Build Number: Win 10 v1809 App min and target version: build version 17763 OS Version (Server, IoT Core, Desktop, etc): Desktop Graphics Driver version: image

image

DxDiag:

  Display Tab 1: No problems found.
    Sound Tab 1: No problems found.
    Sound Tab 2: No problems found.
      Input Tab: No problems found.

Visual Studio 2017

walrusmcd commented 5 years ago

hello @sw6y15 ; Curious why did you close this. did you figure out what is wrong and it's all good now? we would like to help you fix it.

sw6y15 commented 5 years ago

I am not sure the reason, but I clean the environment and it works now. And I found that , if I install CUDA, it happens again. Cuz I was trying onnxruntime with CUDA.

wchao1115 commented 5 years ago

Do you happen to use any of these features when you repro the crash described here?

  1. NvCpl FXAA.
  2. NvCpl MFAA.
  3. Ansel.
  4. Shadowplay
  5. Gsync
sw6y15 commented 5 years ago

I didn't use those features manually, if these turn on by default or not?

LPBourret commented 5 years ago

closing, feel free to reopen if this issue repros