linux-aarch64 CPython ships without PGO (cross-compiled build skips --enable-optimizations); interpreter-bound code measurably slower on Graviton
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 38/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Activo
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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).
- Lenguaje dominante
- Shell
- Estrellas
- 47
- Forks
- 115
- Merge medio
- 5 d 11 h
- PR fusionados (30 d)
- 19
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de conda-forge/python-feedstock
-
Dificultad 3/5 1-2 días Aptitud para principiantes 65/100
conda-forge/python-feedstock#951 ·
Los mantenedores suelen responder en 1 día
-
libedit for older pythons?Abiertoquestion
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
conda-forge/python-feedstock#948 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 42/100
conda-forge/python-feedstock#945 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
conda-forge/python-feedstock#929 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
conda-forge/python-feedstock#903 · 1 comentario ·
Los mantenedores suelen responder en 1 día
Todos los issues de conda-forge/python-feedstock
Issues similares
-
[安全] 为粘贴到 Shell 的代码引用转义路径Posiblemente ocupada @myot233 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
facebookincubator/muse-gadget-sdk#249 ·
Los mantenedores suelen responder en 1 día
-
Readme 中 Releases 链接指向的是完整版字库Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 88/100
-
ssh wrapper leaves bracketed paste and kitty keyboard mode armed after a dropped session, breaking the reconnect passphrase prompt and Ctrl-CPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 78/100
btclib-org/portanode#699 ·
Los mantenedores suelen responder en 1 día