Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-125022: add support for simple SIMD features detection#125011

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Draft
picnixz wants to merge90 commits intopython:main
base:main
Choose a base branch
Loading
frompicnixz:core/simd-helpers

Conversation

picnixz
Copy link
Member

@picnixzpicnixz commentedOct 5, 2024
edited
Loading

In#124951, there has been some initial discussion on improving the performances of base64 and possibly{bytearray,bytes,str}.translate using SIMD instructions.

More generally, if we want to use specific SIMD instructions, it'd be good if we at least know whether we can use them or not. This PR is a PoC, experimental and (hence the skip news).

Note that the detection is essentially based on what was done in the blake2 module (though the flags being detected are different in this case but we can always add all those that are needed). To prepare for a harder detection of AVX instructions support, I added all the flags that are known to CPUID and possibly relevant. Note that more work needs to be done for a production use, especially in autoconf I think.

Note

The detection of a wider large family of CPUs (here we just assume Intel for simplicity and because we don't want to be overcomplicated for now) is still an ongoing work.

cc@gpshead

@picnixzpicnixz added skip issue skip news buildThe build process and cross-build labelsOct 5, 2024
@picnixzpicnixz marked this pull request as ready for reviewOctober 6, 2024 09:49
@picnixzpicnixz changed the titleAdd support for simple SIMD features detection in autoconf (PoC)gh-125022: add support for simple SIMD features detection (PoC)Oct 6, 2024
@picnixzpicnixz changed the titlegh-125022: add support for simple SIMD features detection (PoC)gh-125022: add support for simple SIMD features detectionOct 7, 2024
@picnixz
Copy link
MemberAuthor

!buildbot AMD64 FreeBSD14 PR

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@picnixz for commit3b495f6 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F125011%2Fmerge

The command will test the builders whose names match following regular expression:AMD64 FreeBSD14 PR

The builders matched are:

  • AMD64 FreeBSD14 PR

@picnixz
Copy link
MemberAuthor

!buildbot AMD64 FreeBSD14 PR

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@picnixz for commit8019f09 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F125011%2Fmerge

The command will test the builders whose names match following regular expression:AMD64 FreeBSD14 PR

The builders matched are:

  • AMD64 FreeBSD14 PR

@picnixz
Copy link
MemberAuthor

!buildbot AMD64 FreeBSD14 PR

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@picnixz for commit820d140 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F125011%2Fmerge

The command will test the builders whose names match following regular expression:AMD64 FreeBSD14 PR

The builders matched are:

  • AMD64 FreeBSD14 PR

@picnixz
Copy link
MemberAuthor

!buildbot AMD64 FreeBSD14 PR

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@picnixz for commitdf85ce5 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F125011%2Fmerge

The command will test the builders whose names match following regular expression:AMD64 FreeBSD14 PR

The builders matched are:

  • AMD64 FreeBSD14 PR

@picnixz
Copy link
MemberAuthor

!buildbot AMD64 FreeBSD14 PR

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@picnixz for commitc6cf903 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F125011%2Fmerge

The command will test the builders whose names match following regular expression:AMD64 FreeBSD14 PR

The builders matched are:

  • AMD64 FreeBSD14 PR

@picnixz
Copy link
MemberAuthor

!buildbot AMD64 FreeBSD14 PR

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@picnixz for commit498518f 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F125011%2Fmerge

The command will test the builders whose names match following regular expression:AMD64 FreeBSD14 PR

The builders matched are:

  • AMD64 FreeBSD14 PR

@picnixz
Copy link
MemberAuthor

!buildbot AMD64 FreeBSD14 PR

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@picnixz for commit3d56d93 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F125011%2Fmerge

The command will test the builders whose names match following regular expression:AMD64 FreeBSD14 PR

The builders matched are:

  • AMD64 FreeBSD14 PR

@picnixz
Copy link
MemberAuthor

!buildbot AMD64 FreeBSD14 PR

@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@picnixz for commit08daa8a 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F125011%2Fmerge

The command will test the builders whose names match following regular expression:AMD64 FreeBSD14 PR

The builders matched are:

  • AMD64 FreeBSD14 PR

@picnixz
Copy link
MemberAuthor

I suspect something actually was wrong on FreeBSD/AMD side as others had similar issues. So I just removed XGETBV support. We don't really need it and I think I'll also get rid of other fields that we don't need to usenow (but I'll keep their macros around).

@picnixzpicnixz added the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelJul 15, 2025
@bedevere-bot
Copy link

🤖 New build scheduled with the buildbot fleet by@picnixz for commit79eb72d 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F125011%2Fmerge

If you want to schedule another build, you need to add the🔨 test-with-buildbots label again.

@bedevere-botbedevere-bot removed the 🔨 test-with-buildbotsTest PR w/ buildbots; report in status section labelJul 15, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@erlend-aaslanderlend-aaslanderlend-aasland left review comments

@rruuaanngrruuaanngrruuaanng left review comments

@corona10corona10Awaiting requested review from corona10corona10 is a code owner

@gpsheadgpsheadAwaiting requested review from gpsheadgpshead is a code owner

@tirantiranAwaiting requested review from tirantiran is a code owner

@hugovkhugovkAwaiting requested review from hugovkhugovk is a code owner

@AlexWaygoodAlexWaygoodAwaiting requested review from AlexWaygoodAlexWaygood is a code owner

@AA-TurnerAA-TurnerAwaiting requested review from AA-TurnerAA-Turner is a code owner

@ezio-melottiezio-melottiAwaiting requested review from ezio-melottiezio-melotti will be requested when the pull request is marked ready for reviewezio-melotti is a code owner

Assignees
No one assigned
Labels
buildThe build process and cross-buildskip news
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@picnixz@rruuaanng@bedevere-bot@erlend-aasland

[8]ページ先頭

©2009-2025 Movatter.jp