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

Download CPython builds with "new" CPU features (AVX) #1064

Open
Turakar opened this issue May 9, 2024 · 2 comments
Open

Download CPython builds with "new" CPU features (AVX) #1064

Turakar opened this issue May 9, 2024 · 2 comments

Comments

@Turakar
Copy link

Turakar commented May 9, 2024

Hi, first of all thanks for the awesome project! I really enjoy the self-managed CPython versions.

I noticed that the versions downloaded do not take advantage of CPU features like AVX (SIMD), because rye always installs the x86_64-* variants and not the x86_64_v{2,3,4}-* variants, even if applicable (doc). The new variants might give slight performance improvements. However, I have to note that the linked doc is not overly optimistic about the achieved performance gains, although slight gains are to be expected.

I would prefer if rye would detect the supported CPU features and download the corresponding Python version for me, as nowadays almost all common devices support at least v3 with AVX support. I took a short look at the code, but the way rye fetches its CPython builds seems rather complex to me.

I think that this does not affect 3rd-party libraries like NumPy which ship their own AVX-supporting binaries.

@zanieb
Copy link
Member

zanieb commented May 9, 2024

Hi! I believe support for this would need to be added over in https://github.com/indygreg/python-build-standalone/

@Turakar
Copy link
Author

Turakar commented May 10, 2024

Hi! I believe support for this would need to be added over in https://github.com/indygreg/python-build-standalone/

I don't think so. After all, that project already publishes corresponding builds (e.g., on this release).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants