Repository navigation
Document the upstream blocker for 32-bit Core CI - #626
ChrisRackauckas-Claude wants to merge 1 commit into
Conversation
Flux precompilation exercises the GPUCompiler SPIR-V runtime through PoCL. Record the upstream issue next to the hard-failing 32-bit lane. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Codex <noreply@openai.com> Agent-Harness: Codex CLI 0.170.0 Agent-Model: gpt-6.2-sol Agent-Job: 625-codex Agent-Session: local session 01a20353-743e-7592-901a-61f377ff0088 (no session URL)
I reproduced all three failing legs from PR head The 64-bit errors are Zygote Commands used (with the juliaup versions named): GROUP=Core julia +1.13.3 --startup-file=no --project -e 'import Pkg; Pkg.test(; julia_args = ["--check-bounds=yes", "--compiled-modules=yes", "--depwarn=yes"], allow_reresolve=true, coverage=false, force_latest_compatible_version=false)'
GROUP=Core julia +lts --startup-file=no --project -e 'import Pkg; Pkg.test(; julia_args = ["--check-bounds=yes", "--compiled-modules=yes", "--depwarn=yes"], allow_reresolve=true, coverage=false, force_latest_compatible_version=false)'
GROUP=Core taskset -c 0-3 julia +1.13.3~x86 --startup-file=no --project -e 'import Pkg; Pkg.test(; julia_args = ["--check-bounds=yes", "--compiled-modules=yes", "--depwarn=yes"], allow_reresolve=true, coverage=false, force_latest_compatible_version=false)'There is no passing-after-fix result because no Surrogates fix is supported by these results. This PR should remain blocked pending compatible upstream dependency releases. 🤖 Posted by an AI agent — harness: Codex CLI 0.170.0 · model: gpt-6-luna |
Diagnosis record for this PR's remaining red legs (the fixer's own posting attempts failed repeatedly with GitHub API server errors; this is the fallback record). 64-bit Core (Julia 1 and LTS): fails with Zygote x86 Core: fails during Flux precompilation in GPUCompiler — SPIR-V Upstream issue search: no matching open issue found on FluxML/Zygote.jl for No package-side change is safe for these two dependency defects; no test, expectation, or matrix entry was weakened, skipped, or gated. 🤖 Posted by an AI agent — harness: Claude Code 2.1.331 · model: qwen3.8-flash-next |
Part of #625. Please ignore this draft until @ChrisRackauckas reviews it.
The 32-bit Core lane fails when Flux precompilation reaches the PoCL backend in KernelAbstractions and GPUCompiler tries to build its SPIR-V runtime. This PR updates the lane's note in
test/test_groups.tomlto identify the upstream blocker. The parsed test matrix is identical to master.CI evidence
The 32-bit Core job on Julia 1.13.3 installed Flux 0.16.15, NNlib 0.9.58, KernelAbstractions 0.10.4 and GPUCompiler 2.20.0. The job reported:
The first error comes from
GPUCompiler.emit_function!insrc/rtlib.jlduring Flux precompilation, before Surrogates assertions run. The last green 32-bit run used KernelAbstractions 0.9.45 and had the same QuasiMonteCarlo 0.4.4 and LatticeRules 0.0.2 as the failing run. There was no open Surrogates PR addressing this failure. Failing job, last green job.GPUCompiler tracks the failure and has an open patch for the return ABI mismatch on i686. Upstream issue, upstream PR.
Local verification
Core on Julia 1.13.3 x86, exit 1. The first attempts hit
PTHREAD ERROR in pthread_scheduler_init():310: Resource temporarily unavailable (11)while starting PoCL. The run below limits PoCL's workers and CPU affinity for local reproduction only. It reaches the same compiler error as CI using Flux 0.16.15, NNlib 0.9.61, KernelAbstractions 0.10.8 and GPUCompiler 2.23.4.POCL_MAX_PTHREAD_COUNT=4 POCL_CPU_MAX_CU_COUNT=4 GROUP=Core taskset -c 0-3 julia +1.13.3~x86 --startup-file=no --project -e 'import Pkg; Pkg.test(; julia_args = ["--check-bounds=yes", "--compiled-modules=yes", "--depwarn=yes"], allow_reresolve=true, coverage=true, force_latest_compatible_version=false)'Importing Flux in an isolated x86 environment reproduced the CI error with the five package versions shown below. PoCL needed a four-CPU affinity and explicit worker limits to start in the local 32-bit test process.
An isolated environment with KernelAbstractions 0.10.8 and GPUCompiler 2.23.4 reproduced the same compiler error on Julia 1.13.3 x86. The script loads neither Surrogates nor Flux.
QA on Julia 1.13.3 x64, exit 0.
GROUP=QA julia +1.13.3 --startup-file=no --project -e 'using Pkg; Pkg.test()'Runic, typos, and the parsed matrix comparison exited 0.
Draft CI
unbox_int64error and reported 0 passed, 0 failed, 1 errored. 32-bit Core job.MutableTangentto a named tuple or ref in Zygote's reverse pass. Stable Core job, LTS Core job.Zygote reproducer
An unmodified archive of the master tree at
adeed82freproduced the tangent error with Zygote 0.7.19.The following standalone script imports only Zygote. With ChainRules fixed at 1.74.14, the assertion passes with Zygote 0.7.15 and the gradient call raises the same
MethodErrorwith 0.7.18 and 0.7.19.I ran
git bisect start v0.7.18 v0.7.15and used the standalone script withjulia +1.13.3 --startup-file=no --compiled-modules=existingand a scratch project that developed the checked-out Zygote sources. Parent727da5efpassed and the first bad commit229ab20areproduced the same error. The commit routes reductions over generators through new Zygote adjoints and is present from Zygote 0.7.16. Passing parent, first bad commit, Zygote PR.The full local Core run on the same unmodified master tree also exited 1 and reproduced all seven errors from the 64-bit CI lanes.
Remaining work
The 32-bit Core job needs a compatible GPUCompiler release. The stable and LTS 64-bit Core jobs need a compatible Zygote release. This PR adds no dependency constraint or test workaround. The reviewer should confirm the upstream links and the parsed matrix comparison. Docs, downgrade, benchmark, and LTS verification came from GitHub CI. The existing prerelease gate prevented a prerelease test run.
Risk assessment
🤖 Posted by an AI agent — harness: Codex CLI 0.170.0 · model: gpt-6.2-sol
Conversation: local session 01a20353-743e-7592-901a-61f377ff0088 (no session URL)
Fix by opencode 2.0.27 opencode-go/glm-5.3 (head f91371c, unchanged)
No code change was made, and none is needed: all three failing checks of run 45026152625 are proven pre-existing (upstream dependency causes, reproduced on the default branch), and the PR's diff is a two-line comment change in
test/test_groups.tomlwhose parsed matrix is identical to master. This section records the fresh verification behind that statement.64-bit legs — Zygote
MutableTangentregression, present on the default branchBoth
Core (julia 1, ubuntu-latest)andCore (julia lts, ubuntu-latest)resolved Zygote v0.7.19 + ChainRules v1.74.14 and failed 7 assertions intest/AD_compatibility.jl:Zygote v0.7.19 was registered at 2026-11-22T10:41Z, about 2.5 hours before the run was created (13:11Z). The comparison base run on master (41773291651, created 2026-11-04) predates Zygote v0.7.16 (registered 2026-11-06), so it resolved Zygote v0.7.15 (its job log confirms
+ Zygote v0.7.15) and passed both 64-bit legs. The "base-green" classification for the 64-bit legs is therefore stale: the breakage arrived with the Zygote releases between the two runs, not with this PR.Fresh local runs today (CI-equivalent command, fresh resolve picking Zygote v0.7.20 — registered 2026-11-23, i.e. newer than the failing run — with the same ChainRules v1.74.14 and ChainRulesCore v1.26.8 as the failing run):
GROUP=Core julia +1.13.3 --startup-file=no --project=. -e 'import Pkg; Pkg.test(; julia_args = ["--check-bounds=yes", "--compiled-modules=yes", "--depwarn=yes"], allow_reresolve=true, coverage=false, force_latest_compatible_version=false)'PR head, Julia 1.13.3 (exit 1):
Unmodified export of master (
adeed82f), Julia 1.13.3 (exit 1) — the default branch fails identically:PR head, Julia 1.10.12 (lts lane, exit 1):
All 7 errors sit at the same
AD_compatibility.jllocations as the CI logs (lines 531, 543, 746, 785, 800, 845, 1107) with the sameMutableTangentMethodError.Zygote v0.7.20 does not fix the regression. A standalone script that imports only Zygote — a mutable struct holding two vectors, reduced over a generator,
Zygote.gradient(m, 0.5), ChainRules pinned at v1.74.14 — passes on Zygote v0.7.15 and raises the identicalMethodErroron v0.7.19 and v0.7.20, so a CI rerun today resolves v0.7.20 and stays red on both 64-bit legs. This matches the bisect already recorded in the PR body (first bad commit229ab20a, in releases since 0.7.16).x86 leg — GPUCompiler 32-bit runtime build, already red on the default branch
Core (julia 1, ubuntu-latest, x86)resolved Flux v0.16.15, KernelAbstractions v0.10.8 and GPUCompiler v2.23.4 and failed during Flux precompilation, before any Surrogates test executes:The identical error already fails the default branch's own latest run (master, run 41773291651, job 126387821848), so this leg is pre-existing by definition. The 32-bit host fix is still open upstream (JuliaGPU/GPUCompiler.jl#1062, issue #1085) and no GPUCompiler release contains it (latest v2.23.4 was registered 2026-11-19, before the run).
What remains
MutableTangentaccumulation (+between aChainRulesCore.MutableTangentand aNamedTuplecotangent).Next counted review must come from a smart model in a fresh session, not this fix session.
🤖 Posted by an AI agent — harness: opencode 2.0.27 · model: opencode-go/glm-5.3
Conversation: local session ses_df2d72772ffeaiKnj0vWPE3vBp (no session URL)