microsoft / webnn-developer-preview

MIT License
38 stars 7 forks source link

Add minimum required driver version messaging in samples #32

Open jgw96 opened 3 weeks ago

jgw96 commented 3 weeks ago

Following the existing patterns, I have added a driver info utility to the site.

Things I am unsure of:

fdwr commented 3 weeks ago

FYI @ibelem.

fdwr commented 3 weeks ago

Do stable diffusion and segment-anything have compatible driver versions?

Nope, no NPU's currently support them (memory limits).

Is the layout for the driver info, specifically how Qualcomm and Intel are displayed next to each other ok?

Do you have a local screenshot of what that would look like? (I can read CSS, but seeing is knowing)

ibelem commented 3 weeks ago

@jgw96 @fdwr Maybe we can list NPU driver versions only when devicetype=npu in the URL, otherwise list GPU driver versions?

When necessary, we can detect arm or x86 for Windows to show Qualcomm or Intel driver only. https://learn.microsoft.com/en-us/microsoft-edge/web-platform/how-to-detect-win11#sample-code-for-detecting-arm-or-x86

jgw96 commented 3 weeks ago

@jgw96 @fdwr Maybe we can list NPU driver versions only when devicetype=npu in the URL, otherwise list GPU driver versions?

When necessary, we can detect arm or x86 for Windows to show Qualcomm or Intel driver only. https://learn.microsoft.com/en-us/microsoft-edge/web-platform/how-to-detect-win11#sample-code-for-detecting-arm-or-x86

Yeah I like this, Ill go with this solution