question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add Apple Silicon support (M1/M2 machines): provide universal2 wheel

See original GitHub issue

Feature Request

System information

ONNX version (you are using): the latest main branch

What is the problem that this feature solves?

Currently there is no prebuilt wheel for Apple Silicon machines like M1/M2 on PyPI. Users need to build ONNX from source on their own.

Describe the alternatives you have considered

Directly provide xxx_macosx_11_0_arm64.whl instead, but currently GitHub Action has not provided Apple Silicon machines yet. (All of ONNX released wheels are using GitHub Action).

Describe the feature

To Add Apple Silicon support (M1/M2 machines): provide universal2 wheel. Universal2 wheels are fat binaries with support for both 64-bit Intel and Apple processors. Although GitHub Action currently lacks Apple Silicon machines, ONNX can provide universal wheel for now, because it is at least testable in CIs. In the future, ONNX will further provide direct support like xxx_macosx_11_0_arm64.whl after GitHub Action has provided Apple Silicon machines. More related discussion: https://github.com/onnx/onnx/issues/4317#issuecomment-1194376761.

Will this influence the current api?

No

Feature Area

Which area in ONNX does this impact? (e.g. model usage, backend, best practices, converters, shape_inference, version_converter, training, test, operators):

cc @daquexian

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
jcwchencommented, Oct 17, 2022

Just talked to @daquexian offline. Thank you @daquexian for picking this up! We are planning to add this support for upcoming ONNX 1.13 release (release around mid-Dec.).

1reaction
jcwchencommented, Aug 12, 2022

Hi @daquexian, Good question. In the beginning of developing release CIs in ONNX, I was also considering to use cibuildwheel or other third-party tools. I thought ideally it’s safer that we do not rely on other tools too much (in case they don’t update someday) so I developed the release pipelines with dockers from scratch.

Still, if it is useful for adding new support and saves a lot of engineering time, then yes I think it’s good to have it. cibuildwheel looks promising and well-maintained. Feel free to apply it and simplify our current release CIs. Please let me know if you need any help. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Porting Your macOS Apps to Apple Silicon
Port your existing macOS app to Apple silicon by creating a universal binary and modifying your code to handle architectural differences.
Read more >
"Apple Silicon" and packaging
Add a new custom “machine” type “universal2” for “x86_64 and arm64”. This extends the existing support for fat binaries in macOS and the ......
Read more >
Tips and tricks - cibuildwheel - Read the Docs
The native wheel for macOS on Apple Silicon. Requires Pip 20.3+ (or packaging 20.5+) to install. universal2 ¶. This wheel contains both architectures,...
Read more >
Apple Silicon M1 & M2 Compatibility Info
UA Compatibility with Apple Silicon Macs. The extra steps below are required to install UAD software on Apple silicon systems.
Read more >
python m1 mac - Il Vecchio Cortile
7) on their machine. Anaconda | The The M1 max deliver about 10. 8 on MacBook Learn more about apple silicon, m1 chip,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found