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
Draft
Changes from1 commit
Commits
Show all changes
90 commits
Select commitHold shift + click to select a range
9a6ccb5
support simple SIMD detection
picnixzOct 5, 2024
f4e4f99
add _Py prefix
picnixzOct 5, 2024
5006686
Use `_py` prefix
picnixzOct 5, 2024
3c0b4f1
make the interface friendlier for future adjustments
picnixzOct 6, 2024
01ed21a
Allow `cpu_simd_flags` to be merged.
picnixzOct 6, 2024
969a619
update comments
picnixzOct 6, 2024
5a5acc2
fix typo
picnixzOct 6, 2024
ac1b165
fix configure script
picnixzOct 6, 2024
6f304f2
fix bit detection
picnixzOct 6, 2024
f3bd027
Harden detection of AVX instructions.
picnixzOct 7, 2024
16b2aed
do not guard the parsing of `os_xsave`
picnixzOct 7, 2024
5018fa9
Remove old comment.
picnixzOct 7, 2024
e758065
Update cpuinfo.c comments
picnixzOct 7, 2024
731be81
Update pycore_cpuinfo.h comments
picnixzOct 7, 2024
7947715
fix lint
picnixzOct 7, 2024
7a17cbb
I really shouldn't use a Web UI
picnixzOct 7, 2024
76f67b1
Fix _xgetbv() on Windows builds.
picnixzOct 7, 2024
0b49a50
fix comment
picnixzOct 8, 2024
9fd6152
harden detection of CPU features
picnixzOct 8, 2024
97a0fc5
update configure
picnixzOct 11, 2024
f7da530
Merge remote-tracking branch 'upstream/main' into core/simd-helpers-1…
picnixzOct 11, 2024
5f2884d
update comments
picnixzOct 13, 2024
7c3b74e
update Makefile
picnixzOct 13, 2024
130d099
address Erlend's review
picnixzOct 14, 2024
cd575f0
lint & comment fixups
picnixzOct 14, 2024
2b597a4
Update docs
picnixzOct 27, 2024
78be530
Fix typo
picnixzOct 27, 2024
fd47f0e
Merge branch 'main' into core/simd-helpers
picnixzDec 17, 2024
cbb7b53
re-export functions for extension modules
picnixzDec 17, 2024
21d8ca8
rename os_xsave to osxsave for future automatism
picnixzDec 17, 2024
1f9dbb4
remember `maxleaf` and make detection more readable
picnixzDec 18, 2024
553aa7c
use enumeration for flags
picnixzDec 18, 2024
39d2ba4
fix warnings
picnixzDec 21, 2024
602bb9c
Merge branch 'main' into core/simd-helpers
picnixzDec 21, 2024
d6a3523
remove un-necessary comment and newline continuation
picnixzDec 22, 2024
ff4212e
Merge branch 'main' into core/simd-helpers
picnixzFeb 16, 2025
3cb79f6
regen configure
picnixzFeb 17, 2025
e0a578c
clinic now supports empty comment lines in Python blocks
picnixzFeb 17, 2025
6fdbbdf
Merge remote-tracking branch 'upstream/main' into feat/core/simd-125022
picnixzMar 11, 2025
c265851
Merge remote-tracking branch 'upstream/main' into feat/core/simd-125022
picnixzMar 29, 2025
c12f9c7
move cpuinfo enumerations to real invokable Python scripts
picnixzMar 29, 2025
a6c443f
Merge remote-tracking branch 'upstream/main' into feat/core/simd-125022
picnixzApr 5, 2025
bd3589f
add comments
picnixzApr 5, 2025
d213b67
update C comments
picnixzApr 8, 2025
4109d90
Merge remote-tracking branch 'upstream/main' into feat/core/simd-125022
picnixzApr 8, 2025
19b7d86
TMP: usage proof-of-concept
picnixzApr 8, 2025
1732b6b
Merge remote-tracking branch 'upstream/main' into feat/core/simd-125022
picnixzApr 22, 2025
d59d06d
improve configure.ac
picnixzApr 22, 2025
bc2c1e5
Merge remote-tracking branch 'upstream/main' into feat/core/simd-125022
picnixzApr 25, 2025
4a92103
Merge remote-tracking branch 'upstream/main' into feat/core/simd-125022
picnixzJun 2, 2025
26ed6fd
Merge branch 'main' into feat/core/simd-125022
picnixzJun 30, 2025
d00da3e
post-merge
picnixzJun 30, 2025
8b7ecfb
use `_Py` prefix to prevent public namespace pollution
picnixzJun 30, 2025
3c31ba3
let the compiler decide on the inlineness
picnixzJun 30, 2025
143d57e
drop CPUID_REG alias
picnixzJun 30, 2025
ee2a83c
simplify `_Py_cpuid_check_features`
picnixzJun 30, 2025
e6d4583
amend docs for `_Py_cpuid_disable_features`
picnixzJun 30, 2025
838f928
use macros to support larger flag ranges
picnixzJun 30, 2025
62c9a40
handle -Wpedantic
picnixzJun 30, 2025
a22aa95
reorganize files
picnixzJul 8, 2025
87039dc
suppress compilation warnings
picnixzJul 8, 2025
8a4b120
add linting
picnixzJul 8, 2025
8603e14
typo
picnixzJul 8, 2025
d6213a5
typo
picnixzJul 8, 2025
79d5b34
log more!
picnixzJul 13, 2025
f69d74a
skip CI
picnixzJul 13, 2025
cb9065d
more printf
picnixzJul 13, 2025
88df3b7
faster ci
picnixzJul 13, 2025
db64ba5
!!
picnixzJul 13, 2025
04012b4
!!
picnixzJul 13, 2025
144d9ef
does it work now..?
picnixzJul 14, 2025
b364ad2
does it work now..?
picnixzJul 14, 2025
0791e89
remove xgetbv support?
picnixzJul 14, 2025
48b2cb2
remove xgetbv support?
picnixzJul 14, 2025
34f1337
huh?
picnixzJul 14, 2025
91effb4
only parse maxleaf
picnixzJul 14, 2025
6dc532d
use different variables!
picnixzJul 14, 2025
6d5dd0b
disable everything!
picnixzJul 14, 2025
8e5b2f0
revert CI
picnixzJul 14, 2025
3b495f6
only check maxleaf
picnixzJul 14, 2025
8019f09
parse L1
picnixzJul 14, 2025
820d140
parse L7
picnixzJul 14, 2025
df85ce5
it *should* work now
picnixzJul 14, 2025
915383e
:@
picnixzJul 14, 2025
c6cf903
:@
picnixzJul 14, 2025
498518f
waaaaa!
picnixzJul 14, 2025
3d56d93
remove support for XCR0 registers
picnixzJul 14, 2025
08daa8a
fix SIMD-256 detection
picnixzJul 14, 2025
afd1137
simplify `get_cpuid_info`
picnixzJul 14, 2025
79eb72d
add CODEOWNERS
picnixzJul 15, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
disable everything!
  • Loading branch information
@picnixz
picnixz committedJul 14, 2025
commit6d5dd0b142c86c98ff5ef3e23cdf9502a89119c0
3 changes: 3 additions & 0 deletionsPython/cpuinfo.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -25,6 +25,9 @@
# undef HAS_XGETBV_SUPPORT
#endif

#undef HAS_CPUID_SUPPORT
#undef HAS_XGETBV_SUPPORT

// Below, we declare macros for guarding the detection of SSE, AVX/AVX2
// and AVX-512 instructions. If the compiler does not even recognize the
// corresponding flags or if we are not on an 64-bit platform we do not
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp