Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Web] Support iOS devices #22776

Open
AvivSham opened this issue Nov 8, 2024 · 5 comments
Open

[Web] Support iOS devices #22776

AvivSham opened this issue Nov 8, 2024 · 5 comments
Labels
ep:WebGPU ort-web webgpu provider platform:mobile issues related to ONNX Runtime mobile; typically submitted using template platform:web issues related to ONNX Runtime web; typically submitted using template

Comments

@AvivSham
Copy link

AvivSham commented Nov 8, 2024

Describe the issue

From other discussions and the npm release page, onnxruntime-web (WebGPU) is not supported in iOS devices regardless of browser type.
Is there an estimation on when this feature will be released it is really important for developers!!

To reproduce

Useful links:

Urgency

No response

ONNX Runtime Installation

Released Package

ONNX Runtime Version or Commit ID

1.20.0

Execution Provider

'webgpu' (WebGPU)

@AvivSham AvivSham added the platform:web issues related to ONNX Runtime web; typically submitted using template label Nov 8, 2024
@github-actions github-actions bot added ep:WebGPU ort-web webgpu provider platform:mobile issues related to ONNX Runtime mobile; typically submitted using template labels Nov 8, 2024
@gyagp
Copy link
Contributor

gyagp commented Nov 8, 2024

On iOS, we have to wait for Apple to implement WebGPU. In the recent WebGPU F2F on Oct 29, Apple updated their status as "Functionally, largely complete. In Safari preview for several months. No comment on ship date. Functionally, there are a few missing CTS features we haven't seen used (like importing texture formattings is known not to work). HDR support on WebKit main is added, expect to see in preview soon. Otherwise, looking into iOS memory usage issues and various security issues. Hope to ship soon."

@AvivSham
Copy link
Author

@gyagp Thank you for the clarification!
There is something I'm missing, if WebGPU has been in preview for several months why onnxruntime-web cannot be supported on Safari?
Are you waiting for the official release?

@gyagp
Copy link
Contributor

gyagp commented Nov 11, 2024

My understanding is Safari Technology Preview can only be installed on macOS, but not iOS. So you couldn't run WebGPU on iOS now.
For onnxruntime-web, it can run everywhere that WebGPU is supported. This means you can run onnxruntime-web on macOS now with Safari Technology Preview, in addition to Chrome.

@AvivSham
Copy link
Author

@gyagp Got it, thanks!
How do you suggest to follow the updates around this? i.e. when WebGPU will be available on iOS.

@guschmue
Copy link
Contributor

Seems to be under feature flags in iOS/Safari to turn it on:
Settings -> Apps -> Safari -> Advanced -> Feature Flags -> Webgpu

You can go to https://webgpureport.org/ and see if that worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ep:WebGPU ort-web webgpu provider platform:mobile issues related to ONNX Runtime mobile; typically submitted using template platform:web issues related to ONNX Runtime web; typically submitted using template
Projects
None yet
Development

No branches or pull requests

3 participants