microsoft / microsoft/WindowsAppSDK-Samples
ExecutionProviderCatalog.GetDefault() on Copilot PC
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 1k
- Forks
- 335
- Avg merge
- 5d 1h
- Merged PRs (30d)
- 8
Description
Hi,
I am getting an exception on Copilot PC while using WindowsML sample code in release/experimental branch.
Here is the sample code
EnvironmentCreationOptions envOptions = new()
{
logId = "ResnetBuildDemo",
logLevel = OrtLoggingLevel.ORT_LOGGING_LEVEL_ERROR
};
// Pass the options by reference to CreateInstanceWithOptions
OrtEnv ortEnv = OrtEnv.CreateInstanceWithOptions(ref envOptions);
// Use WinML to download and register Execution Providers
**var catalog = ExecutionProviderCatalog.GetDefault();**
var registeredProviders = await catalog.EnsureAndRegisterAllAsync();
"ExecutionProviderCatalog.GetDefault()" is throwing an exception.
Here is the exception details
"Error in cpuinfo: Unknown chip model name 'Snapdragon(R) X Elite - X1E78100 - Qualcomm(R) Oryon(TM) CPU'.
Please add new Windows on Arm SoC/chip support to arm/windows/init.c!"
Unhandled exception. System.Runtime.InteropServices.COMException (0x80070490)
at WinRT.ExceptionHelpers.g__Throw|38_0(Int32 hr)
at WinRT.ExceptionHelpers.ThrowExceptionForHR(Int32 hr)
at ABI.Microsoft.Windows.AI.MachineLearning.IExecutionProviderCatalogStaticsMethods.GetDefault(IObjectReference _obj)
at Microsoft.Windows.AI.MachineLearning.ExecutionProviderCatalog.GetDefault()
This is a copilot PC. Is there something I need to install to run this ResnetBuildDemoCS code?
Thanks,
Rajiv
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the ResnetBuildDemoCS sample and the ExecutionProviderCatalog.GetDefault() call, then reproduce the failure on a Copilot PC. Trace the reported cpuinfo error for the Snapdragon X Elite model and determine whether the sample needs an installation step or support changes. Done means the cause and required resolution are verified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- machine-learning, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100