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

Add macos universal2 wheel job #6252

Merged
merged 10 commits into from
Apr 22, 2021
Merged

Add macos universal2 wheel job #6252

merged 10 commits into from
Apr 22, 2021

Conversation

mtreinish
Copy link
Member

@mtreinish mtreinish commented Apr 18, 2021

Summary

This commit adds a new wheel job for building universal2 wheels for
macOS. The universal2 wheels will enable running on arm64 macOS systems.
As we don't have any arm64 mac hardware available in CI systems yet
these jobs are cross-compiling arm64 binaries from an x86_64 mac, we
also can't test the arm64 binary component as part of the job because of
this.

This commit also takes the opportunity to update the cibuildwheel
version used for CI to the latest release 1.10.0, since we need to
use >=1.9.0 for arm on macOS support.

Details and comments

Related to #1201

This commit adds a new wheel job for building universal2 wheels for
macOS. The universal2 wheels will enable running on arm64 macOS systems.
As we don't have any arm64 mac hardware available in CI systems yet
these jobs are cross-compiling arm64 binaries from an x86_64 mac, we
also can't test the arm64 binary component as part of the job because of
this.

This commit also takes the opportunity to update the cibuildwheel
version used for CI to the latest release 1.10.0, since we need to use
>=1.9.0 for arm on macOS support.
@mtreinish mtreinish requested a review from a team as a code owner April 18, 2021 14:33
@mtreinish mtreinish added the on hold Can not fix yet label Apr 18, 2021
@mtreinish
Copy link
Member Author

mtreinish commented Apr 18, 2021

@nonhermitian can you test the universal2 wheel in the artifacts: https://dev.azure.com/qiskit-ci/b6f351e4-6a09-4bf6-b029-4b7806a7bde7/_apis/build/builds/26854/artifacts?artifactName=drop&api-version=6.0&%24format=zip in the drop artifact (it'll unfortunately have all the wheels in the zip file) to make sure this works on an arm64 mac.

@nonhermitian
Copy link
Contributor

nonhermitian commented Apr 18, 2021

Seems to work just fine:

Architectures in the fat file: /Users/paul/mambaforge/envs/qiskit/lib/python3.9/site-packages/qiskit/transpiler/passes/routing/cython/stochastic_swap/swap_trial.cpython-39-darwin.so are: x86_64 arm64

The wheel builds all worked and @nonhermitian manually tested the
universal2 binary on an arm64 mac. So this commit removes the test
commit to force the wheel jobs from running on the PR so this is ready
to be merged.

This reverts commit a9bafdd.
@mtreinish mtreinish removed the on hold Can not fix yet label Apr 18, 2021
@mergify mergify bot merged commit fbd917f into Qiskit:main Apr 22, 2021
@mtreinish mtreinish deleted the add-macos-arm branch April 22, 2021 13:29
@1ucian0 1ucian0 added the Changelog: None Do not include in changelog label Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Changelog: None Do not include in changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants