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

[Feature Request]: Support aarch64 python wheel for Linux #19018

Closed
1 task done
bonlime opened this issue Aug 7, 2023 · 5 comments · Fixed by #19594
Closed
1 task done

[Feature Request]: Support aarch64 python wheel for Linux #19018

bonlime opened this issue Aug 7, 2023 · 5 comments · Fixed by #19594
Assignees
Labels
category: packaging OpenVINO packaging / distribution enhancement New feature or request feature New feature request platform: arm OpenVINO on ARM / ARM64 platform: linux OpenVINO on Linux platforms
Milestone

Comments

@bonlime
Copy link

bonlime commented Aug 7, 2023

Request Description

Currently there are builds for arm64, and aarch64 + linux (#15865) , but there is no support for aarch64 + mac. The reason why I need this is because I'm launching a Docker on M1 Mac, and the docker specifies the arch as aarch64, it's not a problem for the rest of my packages, they install without problems, but openvino is unable to find suitable wheels.

I believe this has something to do with specified architectures in the published wheels, no code changes other than releasing +1 wheel would be required. I'm not really familiar with how pip detects architectures, but when I run pip install onnxruntime on my M1 machine it installs version: onnxruntime-1.15.1-cp310-cp310-macosx_11_0_arm64.whl and when I run the same command inside my Docker with aarch64 it installs onnxruntime-1.15.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl. Maybe you could have some wheel similar to this for openvino as well?

Feature Use Case

No response

Issue submission checklist

  • The feature request or improvement must be related to OpenVINO
@bonlime bonlime added enhancement New feature or request feature New feature request labels Aug 7, 2023
@ilya-lavrenov ilya-lavrenov changed the title [Feature Request]: Support aarch64 for Mac OS [Feature Request]: Support aarch64 python wheel for Linux Aug 7, 2023
@ilya-lavrenov ilya-lavrenov self-assigned this Aug 7, 2023
@ilya-lavrenov
Copy link
Contributor

Hi @bonlime
We don't provide prebuilt Linux aarch64 wheels because of internal infrastructure issues (but we are in progress of resolving them), but technically it's quite easy to natively build OpenVINO as a wheel package on macOS via docker Linux aarch64 environment.
If this way works for you, you can follow this instruction https://github.com/openvinotoolkit/openvino/blob/master/docs/dev/build_linux.md and perform all these steps to install dependencies and build OpenVINO wheel package.

@ilya-lavrenov
Copy link
Contributor

ilya-lavrenov commented Aug 7, 2023

Alternatively, you can use conda packages, which are available for all platforms and OpenVINO supported architectures:

conda install -c "conda-forge/label/openvino_dev" openvino

Currently, users have to use openvino_dev label for pre-release packages, but they will be fully available in upcoming 2023.1 release.

Note, if you install OpenVINO using conda, the pip will "see" this package:

conda install -c "conda-forge/label/openvino_dev" openvino
pip list | grep openvino

Will print openvino

@bonlime
Copy link
Author

bonlime commented Aug 7, 2023

@ilya-lavrenov thanks for a quick response. I'll try both approaches and will see which one is easier for me, I hope this would resolve my question, I'll close this issue in a few days if everything works

@ilya-lavrenov ilya-lavrenov added this to the 2023.1 milestone Sep 11, 2023
@ilya-lavrenov ilya-lavrenov added platform: arm OpenVINO on ARM / ARM64 platform: linux OpenVINO on Linux platforms category: packaging OpenVINO packaging / distribution labels Sep 11, 2023
@ilya-lavrenov ilya-lavrenov linked a pull request Sep 17, 2023 that will close this issue
@ilya-lavrenov
Copy link
Contributor

We have released OpenVINO 2023.1.0 and published wheel packages for arm64 Linux https://pypi.org/project/openvino/#files
Please, try:

python3 -m pip install openvino

@bonlime
Copy link
Author

bonlime commented Sep 19, 2023

@ilya-lavrenov that works, thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: packaging OpenVINO packaging / distribution enhancement New feature or request feature New feature request platform: arm OpenVINO on ARM / ARM64 platform: linux OpenVINO on Linux platforms
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants