intel / intel/Microsoft-Build2025-Samples
Can WindowsAI-APIs samples run on CPU-only?
- Dominant language
- C#
- Stars
- 5
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Can WindowsAI-APIs samples run on CPU-only, i.e. without an NPU? WindowsAI-Apis.exe crashes with every startup argument (Phi Silica, ocr, etc.) with the exception message below, followed by a memory address:
`Microsoft C++ exception: winrt::hresult_error at memory location`
Calls stack below is with no command line arguments, i.e. Phi Silica:
```
KernelBase.dll!00007ff932f366ca() Unknown
Microsoft.Windows.Workloads.dll!00007ff82686c687() Unknown
Microsoft.Windows.Workloads.dll!00007ff826839373() Unknown
Microsoft.Windows.Workloads.dll!00007ff8268510b7() Unknown
Microsoft.Windows.Workloads.dll!00007ff8268560ab() Unknown
Microsoft.Windows.Workloads.dll!00007ff8268590f5() Unknown
Microsoft.Windows.AI.Text.dll!00007ff8268bdcae() Unknown
Microsoft.Windows.AI.Text.dll!00007ff8268bd74d() Unknown
Microsoft.Windows.AI.Text.dll!00007ff8268ba9d2() Unknown
[External Code]
> WindowsAI-Apis.dll!Phi3Silica.run_prompt(string prompt) Line 8 C#
WindowsAI-Apis.dll!Program.Main(string[] args) Line 25 C#
[External Code]
```
| Software| Version |
|--------|--------|
| Visual Studio 2022| 17.14.15 |
| Windows ML Runtime 2.0 Experimental 1 | 0.3.131.0|
| Windows ML Runtime Intel OpenVINO Execution Provider | 2025.1.7.0|
| Intel oneAPI Level Zero | 1.21.10 |
Contributor guide
Assessment
This issue has not been assessed yet.