Closed Zu-shi closed 1 month ago
Can this run on NPU of Snapdragon X series as well?
Can this run on NPU of Snapdragon X series as well?
Hi, I don't have a device on hand, but this is expected to work on Snapdragon X. If an issue is encountered during inference, the mobilenet version from QualComm AI Hub should work.
I think this sample should be kept as simple as possible and only show logic to unambiguously select an NPU. I don't think we need to illustrate the flexibility and numerous ways adapters can be filtered (this isn't a DXCore sample); I think this flexibility actually makes the sample more confusing, because we're not guiding users on the precise attributes required to leverage NPU.
In short, I suggest having something like GENERIC_ML || (CORE_COMPUTE && !GRAPHICS).
A bit delayed but this has been incorporated, thanks!
Expand NPU sample's capabilities for creating devices based on attributes.
More specifically, allow options to filter based on allowed, unallowed, and required attributes. Then add some flags for the most commonly needed options for this sample.
The logic for how each interacts with CreateAdapterList is a bit unconventional since CreateAdapterList ANDs the passed in attributes.
Tested locally on Intel NPU.