Skip to content

Fix Core i686 tests: BLAS axpby ULP and Int width - #420

Merged
ChrisRackauckas merged 1 commit into
SciML:mainfrom
ChrisRackauckas-Claude:fix-i686-axpby-ulp
Sep 8, 2026
Merged

ChrisRackauckas merged 1 commit into
SciML:mainfrom
ChrisRackauckas-Claude:fix-i686-axpby-ulp

Conversation

@ChrisRackauckas-Claude

Copy link
Copy Markdown
Member

Summary

After #419 dropped Tracker from Core, the i686 lane actually runs Core tests. Two of those tests were 64-bit-only:

  1. axpby! is implemented as axpby!(α, getdata(x), β, getdata(y)). The tests compared that to broadcast 2 .* x .+ 3 .* y, which differs from OpenBLAS by 1 ULP on i686. Compare against LinearAlgebra on the parent arrays instead (the actual wrapper contract). Identity/=== checks are unchanged.
  2. ComponentArray(a = missing, b = [2, 1, 4, 5], ...) promotes integer literals to Int, which is Int32 on 32-bit. The tests hardcoded Union{Int64, Missing/Nothing}. Use Int.

Please ignore this PR until reviewed by @ChrisRackauckas.

Fail-before / pass-after

i686 Julia 1.12.7, unfixed test/axpy_axpby_tests.jl:30:

Test Failed
  Expression: getdata(y) == 2 .* getdata(x) .+ 3 .* ydata
   Evaluated: [..., 3.3541565563827733, ...] == [..., 3.354156556382773, ...]

Same machine after this change: ALL AXPY TESTS PASSED. Full GROUP=Core on i686 1.12.7: passed (axpy 14/14, construction 69/69, all Core files green).

GROUP=Core x86_64 1.12: passed (axpy 14/14).

CI of #419: https://github.com/SciML/ComponentArrays.jl/actions/runs/34150296278/job/101862665789 (same axpby == failure).

Not run: Autodiff, QA, GPU, Downstream, Reactant, docs.

Links

🤖 Generated with Grok Build TUI (model: grok-4.6)
Agent-Session: local session 01a07c62-9594-75e1-9f42-3faabb3d6cf2 (transcript: /home/crackauc/.grok/sessions/%2Fhome%2Fcrackauc%2Fsandbox%2Ftmp_20260907_120012_92362/01a07c62-9594-75e1-9f42-3faabb3d6cf2)

axpby! forwards to LinearAlgebra on the parent array. Comparing that
result to broadcast `α .* x .+ β .* y` fails by 1 ULP on i686 OpenBLAS.
Compare against axpy!/axpby! on getdata instead.

Missing/nothing construction used Union{Int64,...} for integer literals,
which are Int32 on 32-bit. Use Int.

Fail-before (i686 1.12.7): axpy_axpby_tests.jl:30 Test Failed
(`2.2218...9782` vs `...978`). After: Core 14/14 axpy, 69/69 construction,
full GROUP=Core passed.

Co-Authored-By: Chris Rackauckas <[email protected]>
Co-Authored-By: Grok <[email protected]>
Agent-Harness: Grok Build TUI
Agent-Model: grok-4.6
Agent-Session: local session 01a07c62-9594-75e1-9f42-3faabb3d6cf2 (transcript: /home/crackauc/.grok/sessions/%2Fhome%2Fcrackauc%2Fsandbox%2Ftmp_20260907_120012_92362/01a07c62-9594-75e1-9f42-3faabb3d6cf2)
@ChrisRackauckas
ChrisRackauckas marked this pull request as ready for review September 8, 2026 22:42
@ChrisRackauckas
ChrisRackauckas merged commit 430dba4 into SciML:main Sep 8, 2026
21 checks passed
ChrisRackauckas added a commit that referenced this pull request Sep 11, 2026
- Add 32-bit Core CI lane via test_groups.toml (#415)
- Make 32-bit Core lane non-blocking (BFloat16s LLVM) (#416)
- Keep 32-bit Core lane hard-failing. (#418)
- Drop Tracker from Core tests; keep it in Autodiff (#419)
- Fix Core i686 tests: BLAS axpby ULP and Int width (#420)
- Handle raw `Array` cotangents into `FlatComponentArray` `fdata` (#421)
- Add AirspeedVelocity benchmarking CI (#422)



Agent-Harness: Claude Code
Agent-Model: claude-opus-5[1m]
Claude-Session: https://claude.ai/code/session_014FEzNTLFutCmTEAZ3zBg5R

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants