You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using GPU target, the first line will indicate the selected execution target.
80
84
You can monitor GPU usage using cmd `watch -n 1 nvidia-smi`.
81
85
86
+
To see trace logs from `wasmtime_wasi_nn` or `ort`, run Wasmtime with `WASMTIME_LOG` enabled, e.g.,
87
+
88
+
```sh
89
+
WASMTIME_LOG=wasmtime_wasi_nn=warn ./target/debug/wasmtime run ...
90
+
WASMTIME_LOG=ort=warn ./target/debug/wasmtime run ...
91
+
```
92
+
82
93
## Prerequisites for GPU(CUDA) Support
83
94
- NVIDIA GPU with CUDA support
84
95
- CUDA Toolkit 12.x with cuDNN 9.x
85
96
- Build wasmtime with `wasmtime-wasi-nn/onnx-cuda` feature
97
+
98
+
## ONNX Runtime's Fallback Behavior
99
+
100
+
If the GPU execution provider is requested (by passing `gpu`) but the device does not have a GPU or the necessary CUDA drivers are missing, ONNX Runtime will **silently fall back** to the CPU execution provider. The application will continue to run, but inference will happen on the CPU.
101
+
102
+
To verify if fallback is happening, you can enable ONNX Runtime logging:
103
+
104
+
1. Build Wasmtime with the additional `wasmtime-wasi-nn/ort-tracing` feature:
0 commit comments