linux-aarch64 CPython ships without PGO (cross-compiled build skips --enable-optimizations); interpreter-bound code measurably slower on Graviton
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 38/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- build-system, developer-experience, performance
Direzione di ricerca
Start with recipe/build_base.sh around the conditional that adds --with-lto and --enable-optimizations, and inspect how _OPTIMIZED and CONDA_BUILD_CROSS_COMPILATION are set. Trace the generated CONFIG_ARGS for native arm64 and cross-compiled builds, then evaluate native arm64 CI or an emulated profile step. Done means identifying a supported PGO/LTO build path and verifying the resulting configure arguments and interpreter performance.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Observation. sysconfig.get_config_var("CONFIG_ARGS") for conda-forge CPython 3.12.13, linux-aarch64 (built Mar 5 2026, GCC 14.3.0) contains --build=x86_64-conda-linux-gnu --host=aarch64-conda-linux-gnu and neither --enable-optimizations nor --with-lto. CPython 3.12.11, linux-64 (Jun 4 2025) has --enable-optimizations --with-lto=full.
Why. recipe/build_base.sh on main, around L281–285:
if [[ ${_OPTIMIZED} == yes ]]; then
_common_configure_args+=(--with-lto=full)
if [[ "$CONDA_BUILD_CROSS_COMPILATION" != "1" ]]; then
_common_configure_args+=(--enable-optimizations)
linux-aarch64 is cross-compiled, so PGO is always skipped there. I haven't traced why --with-lto is also missing from the 3.12.13 aarch64 build's CONFIG_ARGS.
Measured impact (confounded, stated as such). We ran the same pure-Python inner loop (MAGeCK's count: gzip line reading plus dict lookups) on the same bytes on AWS, in each platform's conda-forge interpreter:
| Graviton4 (aarch64, no PGO) | Intel Xeon 6975P-C (x86, PGO+LTO) | AMD EPYC 9R45 (x86, PGO+LTO) | |
|---|---|---|---|
| gzip lines/s | 2.56 M | 3.85 M | 5.02 M |
| guide lookups/s | 0.60 M | 1.19 M | 1.60 M |
This mixes core differences, a patch-version difference, and the build difference, so it doesn't isolate PGO's share. (PGO+LTO speedups on interpreter-bound code are commonly cited as 10–20%; I haven't measured that here.) On Graviton, arm64 has no published PGO build to compare against at all, since it's skipped by construction.
Question. Is a native (non-cross) linux-aarch64 build with PGO feasible now that native arm64 CI runners exist, or is there a way to run the profile step under emulation? Every Python-heavy bioinformatics or science tool on linux-aarch64 inherits this.
Found while verifying real workloads on AWS for scientific-codes-cookbook (measurements/mageck-real).
- Lingua principale
- Shell
- Stelle
- 47
- Fork
- 115
- Merge medio
- 2g 13h
- PR unite (30g)
- 15
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di conda-forge/python-feedstock
-
question
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
conda-forge/python-feedstock#956 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 65/100
conda-forge/python-feedstock#951 ·
I maintainer di solito rispondono entro 1 giorno
-
libedit for older pythons?Apertaquestion
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
conda-forge/python-feedstock#948 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 42/100
conda-forge/python-feedstock#945 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
conda-forge/python-feedstock#929 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di conda-forge/python-feedstock
Issue simili
-
bug: `curl NAME` exports an unquoted, uninterpolated command that is not runnableForse già presa @dannyward630 l’ha presa oggi. Apertabug good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
yunaremaia/git-api#61 ·
I maintainer di solito rispondono entro 1 giorno
-
Update nwg-panel to 0.12.3Forse già presa @zen0bit l’ha presa oggi. Apertapackage-update
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
alunduil/alunduil-chezmoi#963 ·
I maintainer di solito rispondono entro 1 giorno