Skip to content

Raise the Julia floor to 1.12 - #1033

Merged
seabbs merged 11 commits into
mainfrom
claude/julia-1.12-floor
Dec 3, 2026
Merged

seabbs merged 11 commits into
mainfrom
claude/julia-1.12-floor

Conversation

@seabbs-bot

@seabbs-bot seabbs-bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Collaborator

Part of #930 (finding 6).

Summary

  • The Julia floor is 1.12: julia = "1.12, 1.13" in Project.toml, and in the CUDA and OpenCL test environments.
  • Code and test branches for Julia below 1.12 are removed, in src/, the Enzyme extensions and the AD tests.
    The only VERSION check left is >= v"1.13" in the AD fixtures.
  • The integer scale of a stored identity coupling is kept, as it sets the integer output type and is not specific to 1.11.
  • The JLArrays lower bound is now 0.3.3 in every environment that states it (test, test/ad, docs, benchmark, benchmark/routes).
    JLArrays 0.3.1 and 0.3.2 define csr_type only on an instance, so a JLSparseMatrixCSC coupling has no conversion to CSR form, and the Downgrade Compat check fails in the two sparse coupling scenarios.
    0.3.3 is the first release with csr_type(::Type{<:JLSparseMatrixCSC}).
  • docs/src/developer/testing.md names 1.12 as the oldest version for the Threads and AD versions workflows.
  • The README and the docs state no install-time Julia version, so neither changes.

The package-owned Threads and AD versions workflows still have Julia 1.11 legs, which cannot install the package once the floor is 1.12.
They are not changed here; the change they need is raised separately.

Checks run locally

All on Julia 1.12.7, Linux, 4 cores.

  • Default suite with quality items (julia --project=test test/runtests.jl): 653 items on 4 workers, 42,420 pass, 8 broken, no failures or errors.
  • Item "Registry on JLArrays: a sparse matrix moved in CSC form" at GPUArrays 11.3.0 and KernelAbstractions 0.9.34: with JLArrays 0.3.1, 2 pass and 4 errors (no conversion to CSR form); with JLArrays 0.3.3, 28 pass.
  • Mooncake reverse AD group, the items runtests.jl mooncake_reverse selects, run in three processes to fit a 2-hour limit: 9,365 pass and 1 fail.
    The failure is the rule check of "NoAdjoint Convolution lag contributions of a table cut at a report day", which reproduces on main at fdd8b04 and is NoAdjoint twin of the table-cut contributions scenario runs the rule #1034.
  • FFT convolution Enzyme item, forward: 229 pass on Julia 1.12 and on 1.13.
  • The GPUArrays lower bound is now 11.5.11 in every environment that states it.
    Before 11.5.11 GPUArrays calls csc_type on a sparse matrix instance but defines it only on the type; item "JLArrays: Redistribute by a Diagonal, wrapped or sparse matrix" with JLArrays 0.3.3 and KernelAbstractions 0.9.34 gives 6 pass and 1 fail at GPUArrays 11.3.0 and 11.5.10, and 7 pass at 11.5.11.

https://claude.ai/code/session_01WwC7ixCuG9cWCUmCJUmbPL


Generated by Claude Code

Set julia compat to 1.12 and 1.13 in the package and the test
environments that state it. The Threads workflow tests the floor on
1.12 and the AD versions workflow runs on 1.12 alone. The testing page
names 1.12 as the oldest version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WwC7iv2KDpxHFtSvpTQrsG
Drop the Enzyme warning of lost scalar gradients and the plain-AD hook
that carried it, the EnzymeTestUtils branch that skipped the Ref check,
the integer scale of a stored identity coupling, an aggressive
constant-propagation annotation and two static-parameter indirections
that inference needed on 1.11. In the tests, drop the 1.11 broken
markers, version branches and the item for the removed warning.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WwC7iv2KDpxHFtSvpTQrsG
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WwC7iv2KDpxHFtSvpTQrsG
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WwC7iv2KDpxHFtSvpTQrsG
It also makes integer and Bool inputs give an output promoted with Int,
which the eltype tests hold, so it is not a Julia 1.11 workaround. The
comment now gives that reason.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WwC7iv2KDpxHFtSvpTQrsG
The plain-AD hook stays: #955 uses it to say why a call takes plain AD.
Only its Julia 1.11 warning goes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WwC7iv2KDpxHFtSvpTQrsG
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WwC7ixCuG9cWCUmCJUmbPL
The Julia 1.11 legs of the Threads and AD versions workflows are raised
separately, as workflow files are outside this change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WwC7ixCuG9cWCUmCJUmbPL
JLArrays 0.3.1 and 0.3.2 define csr_type only on an instance, so a
JLSparseMatrixCSC coupling has no conversion to CSR form by its type.
0.3.3 is the first release with csr_type(::Type{<:JLSparseMatrixCSC}).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WwC7ixCuG9cWCUmCJUmbPL
@seabbs-bot
seabbs-bot requested a review from seabbs as a code owner December 3, 2026 12:07

Copy link
Copy Markdown
Collaborator Author

The Julia 1.11 jobs of the Threads workflow fail here, and will on every head of this PR: ad (Julia 1.11, registry), and likewise ad (Julia 1.11, rest) and unit (Julia 1.11).
The cause is the change itself: Julia 1.11.9 stops at julia version requirement from Project.toml's compat section not satisfied, as the floor is now 1.12.
No test runs in those jobs, so this says nothing about the code.

.github/workflows/threads.yaml and .github/workflows/ad-versions.yaml are package-owned but outside this PR, so they are not edited here.
The change they need: replace '1.11' with '1.12' in the unit and ad matrices of threads.yaml, and delete the sed -i '/^Runic = /d' test/Project.toml step it runs on 1.11; drop '1.11' from the version matrix of ad-versions.yaml.
The jobs on the current release are unaffected.


Generated by Claude Code

seabbs-review-bot[bot]

This comment was marked as resolved.

@seabbs-review-bot seabbs-review-bot Bot added the llm-reviewed Reviewed by seabbs-review-bot label Dec 3, 2026
@github-actions

github-actions Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Benchmark comparison vs base

Minimum time per call. Buckets are PR time as a % of base, so lower is faster (🟢 faster, ⚪ within 5%, 🔴 slower). Counts of benchmarks per bucket:

Group 🟢 <50% 🟢 50–75% 🟢 75–95% ⚪ 95–105% 🔴 105–125% 🔴 125–150% 🔴 >150%
Evaluation · · · 12 11 1 ·
ForwardDiff · · · 17 4 · ·
Mooncake reverse · · · 16 5 · ·
Enzyme reverse · · · 11 10 · ·
Evaluation — 24 benchmarks (by time change)
Benchmark base PR time memory
Evaluation / Matrix tv_piecewise_secondary_k5 T200_L20_S1 1.31 μs 1.64 μs 🔴 1.25× ⚪ 1.0×
Evaluation / Matrix conv_fixed T200_L20_S1 551.0 ns 661.0 ns 🔴 1.2× ⚪ 1.0×
Evaluation / Matrix random_walk T30_L1_S1 70.0 ns 80.0 ns 🔴 1.14× ⚪ 1.0×
Evaluation / Matrix renewal T200_L20_S1 2.55 μs 2.73 μs 🔴 1.07× ⚪ 1.0×
Evaluation / Matrix custom_modifier T200_L20_S1 3.3 μs 3.52 μs 🔴 1.06× ⚪ 1.0×
Evaluation / Matrix strata_mixing T200_L20_S5 22.11 μs 23.5 μs 🔴 1.06× ⚪ 1.0×
Evaluation / Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1 4.59 μs 4.87 μs 🔴 1.06× ⚪ 1.0×
Evaluation / Matrix bvd_patches_call T200_L20_S5 42.29 μs 44.88 μs 🔴 1.06× ⚪ 1.0×
Evaluation / Matrix bvd_patches_call T200_L20_S1 15.28 μs 16.2 μs 🔴 1.06× ⚪ 1.0×
Convolution body / native axpy per lag 407.7 ns 432.0 ns 🔴 1.06× —
Evaluation / Matrix bvd_renewal_call T200_L20_S1 7.17 μs 7.59 μs 🔴 1.06× ⚪ 1.0×
Evaluation / Matrix delay_fixed T200_L20_S1 581.0 ns 611.0 ns 🔴 1.05× ⚪ 1.0×
Evaluation / Matrix bvd_patch T200_L20_S5 31.93 μs 33.52 μs ⚪ 1.05× ⚪ 1.0×
Evaluation / Matrix custom_modifier_pullback T200_L20_S1 3.28 μs 3.44 μs ⚪ 1.05× ⚪ 1.0×
Evaluation / Matrix user_depletion T200_L20_S1 6.92 μs 7.25 μs ⚪ 1.05× ⚪ 1.0×
Evaluation / Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1 4.7 μs 4.91 μs ⚪ 1.04× ⚪ 1.0×
Convolution body / BLAS axpy per lag 688.4 ns 716.4 ns ⚪ 1.04× —
Evaluation / Matrix bvd_census T200_L20_S1 1.98 μs 2.06 μs ⚪ 1.04× ⚪ 1.0×
Evaluation / Matrix overview T200_L20_S3 13.92 μs 14.48 μs ⚪ 1.04× ⚪ 1.0×
Evaluation / Matrix bvd_occupancy_kernel T200_L20_S1 5.84 μs 6.06 μs ⚪ 1.04× ⚪ 1.0×
Convolution body / package 317.3 ns 329.2 ns ⚪ 1.04× —
Evaluation / Matrix renewal_depletion T200_L20_S1 6.87 μs 7.12 μs ⚪ 1.04× ⚪ 1.0×
Evaluation / Matrix user_depletion_pullback T200_L20_S1 6.9 μs 7.14 μs ⚪ 1.03× ⚪ 1.0×
Evaluation / Matrix tv_piecewise_primary_k5 T200_L20_S1 3.16 μs 3.22 μs ⚪ 1.02× ⚪ 1.0×
AD gradients — 63 benchmarks (by time change)
Benchmark base PR time memory
AD gradients / Matrix conv_fixed T200_L20_S1 / ForwardDiff 303.78 μs 342.37 μs 🔴 1.13× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1 / Mooncake reverse 22.49 μs 24.64 μs 🔴 1.1× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1 / Enzyme reverse 10.52 μs 11.46 μs 🔴 1.09× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1 / Mooncake reverse 19.19 μs 20.83 μs 🔴 1.09× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1 / Enzyme reverse 14.53 μs 15.68 μs 🔴 1.08× ⚪ 1.0×
AD gradients / Matrix delay_fixed T200_L20_S1 / Enzyme reverse 2.65 μs 2.85 μs 🔴 1.08× ⚪ 1.0×
AD gradients / Matrix bvd_patches_call T200_L20_S1 / Enzyme reverse 39.07 μs 41.77 μs 🔴 1.07× ⚪ 1.0×
AD gradients / Matrix bvd_census T200_L20_S1 / Mooncake reverse 13.56 μs 14.49 μs 🔴 1.07× ⚪ 1.0×
AD gradients / Matrix renewal T200_L20_S1 / Enzyme reverse 6.95 μs 7.42 μs 🔴 1.07× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_secondary_k5 T200_L20_S1 / Mooncake reverse 13.65 μs 14.54 μs 🔴 1.07× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_renewal_secondary_k5 T200_L20_S1 / ForwardDiff 847.24 μs 900.36 μs 🔴 1.06× ⚪ 1.0×
AD gradients / Matrix custom_modifier_pullback T200_L20_S1 / Mooncake reverse 17.16 μs 18.22 μs 🔴 1.06× ⚪ 1.0×
AD gradients / Matrix random_walk T30_L1_S1 / Enzyme reverse 180.0 ns 190.0 ns 🔴 1.06× ⚪ 1.0×
AD gradients / Matrix custom_modifier_pullback T200_L20_S1 / Enzyme reverse 7.93 μs 8.36 μs 🔴 1.05× ⚪ 1.0×
AD gradients / Matrix bvd_occupancy_kernel T200_L20_S1 / Enzyme reverse 29.88 μs 31.5 μs 🔴 1.05× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_renewal_primary_k5 T200_L20_S1 / ForwardDiff 632.46 μs 666.08 μs 🔴 1.05× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_primary_k5 T200_L20_S1 / Enzyme reverse 8.11 μs 8.54 μs 🔴 1.05× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_primary_k5 T200_L20_S1 / ForwardDiff 584.66 μs 614.51 μs 🔴 1.05× ⚪ 1.0×
AD gradients / Matrix renewal_depletion T200_L20_S1 / Enzyme reverse 14.42 μs 15.14 μs 🔴 1.05× ⚪ 1.0×
AD gradients / Matrix custom_modifier_pullback T200_L20_S1 / ForwardDiff 441.11 μs 462.94 μs ⚪ 1.05× ⚪ 1.0×
AD gradients / Matrix delay_fixed T200_L20_S1 / Mooncake reverse 9.35 μs 9.82 μs ⚪ 1.05× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_primary_k5 T200_L20_S1 / Mooncake reverse 14.26 μs 14.96 μs ⚪ 1.05× ⚪ 1.0×
AD gradients / Matrix bvd_census T200_L20_S1 / ForwardDiff 1.91 ms 2.0 ms ⚪ 1.04× ⚪ 1.0×
AD gradients / Matrix bvd_occupancy_kernel T200_L20_S1 / Mooncake reverse 30.36 μs 31.72 μs ⚪ 1.04× ⚪ 1.0×
AD gradients / Matrix bvd_occupancy_kernel T200_L20_S1 / ForwardDiff 6.38 ms 6.65 ms ⚪ 1.04× ⚪ 1.0×
AD gradients / Matrix user_depletion_pullback T200_L20_S1 / ForwardDiff 462.72 μs 482.11 μs ⚪ 1.04× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_secondary_k5 T200_L20_S1 / ForwardDiff 576.9 μs 599.84 μs ⚪ 1.04× ⚪ 1.0×
AD gradients / Matrix strata_mixing T200_L20_S5 / Enzyme reverse 68.26 μs 65.62 μs ⚪ 0.96× ⚪ 1.0×
AD gradients / Matrix tv_piecewise_secondary_k5 T200_L20_S1 / Enzyme reverse 7.06 μs 7.33 μs ⚪ 1.04× ⚪ 1.0×
AD gradients / Matrix bvd_census T200_L20_S1 / Enzyme reverse 14.45 μs 14.95 μs ⚪ 1.03× ⚪ 1.0×
AD gradients / Matrix renewal T200_L20_S1 / Mooncake reverse 12.59 μs 13.0 μs ⚪ 1.03× ⚪ 1.0×
AD gradients / Matrix user_depletion_pullback T200_L20_S1 / Enzyme reverse 14.43 μs 14.87 μs ⚪ 1.03× ⚪ 1.0×
AD gradients / Matrix random_walk T30_L1_S1 / ForwardDiff 2.32 μs 2.26 μs ⚪ 0.97× ⚪ 1.0×
AD gradients / Matrix renewal_depletion T200_L20_S1 / Mooncake reverse 20.84 μs 21.38 μs ⚪ 1.03× ⚪ 1.0×
AD gradients / Matrix bvd_patches_call T200_L20_S1 / Mooncake reverse 55.6 μs 57.03 μs ⚪ 1.03× ⚪ 1.0×
AD gradients / Matrix overview T200_L20_S3 / Enzyme reverse 40.11 μs 41.06 μs ⚪ 1.02× ⚪ 1.0×
AD gradients / Matrix delay_fixed T200_L20_S1 / ForwardDiff 437.9 μs 447.69 μs ⚪ 1.02× ⚪ 1.0×
AD gradients / Matrix overview T200_L20_S3 / ForwardDiff 3.02 ms 3.08 ms ⚪ 1.02× ⚪ 1.0×
AD gradients / Matrix random_walk T30_L1_S1 / Mooncake reverse 931.0 ns 951.0 ns ⚪ 1.02× ⚪ 1.0×
AD gradients / Matrix bvd_patches_call T200_L20_S5 / Enzyme reverse 109.31 μs 111.65 μs ⚪ 1.02× ⚪ 1.0×
AD gradients / Matrix overview T200_L20_S3 / Mooncake reverse 59.45 μs 60.67 μs ⚪ 1.02× ⚪ 1.0×
AD gradients / Matrix bvd_renewal_call T200_L20_S1 / ForwardDiff 570.95 μs 582.35 μs ⚪ 1.02× ⚪ 1.0×
AD gradients / Matrix custom_modifier T200_L20_S1 / Mooncake reverse 17.64 μs 17.99 μs ⚪ 1.02× ⚪ 1.0×
AD gradients / Matrix bvd_patches_call T200_L20_S5 / Mooncake reverse 157.78 μs 160.68 μs ⚪ 1.02× ⚪ 1.0×
AD gradients / Matrix renewal_depletion T200_L20_S1 / ForwardDiff 486.69 μs 495.2 μs ⚪ 1.02× ⚪ 1.0×
AD gradients / Matrix user_depletion T200_L20_S1 / Enzyme reverse 16.34 μs 16.58 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix bvd_patches_call T200_L20_S1 / ForwardDiff 1.63 ms 1.61 ms ⚪ 0.99× ⚪ 1.0×
AD gradients / Matrix conv_fixed T200_L20_S1 / Enzyme reverse 2.42 μs 2.45 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix renewal T200_L20_S1 / ForwardDiff 540.0 μs 546.8 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix user_depletion T200_L20_S1 / Mooncake reverse 22.21 μs 22.47 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix bvd_patches_call T200_L20_S5 / ForwardDiff 48.63 ms 49.15 ms ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix strata_mixing T200_L20_S5 / Mooncake reverse 104.88 μs 106.0 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix strata_mixing T200_L20_S5 / ForwardDiff 11.86 ms 11.99 ms ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix user_depletion T200_L20_S1 / ForwardDiff 478.09 μs 483.02 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix conv_fixed T200_L20_S1 / Mooncake reverse 10.26 μs 10.36 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix custom_modifier T200_L20_S1 / Enzyme reverse 9.06 μs 8.98 μs ⚪ 0.99× ⚪ 1.0×
AD gradients / Matrix bvd_patch T200_L20_S5 / Enzyme reverse 84.12 μs 84.77 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix bvd_renewal_call T200_L20_S1 / Mooncake reverse 23.54 μs 23.36 μs ⚪ 0.99× ⚪ 1.0×
AD gradients / Matrix user_depletion_pullback T200_L20_S1 / Mooncake reverse 20.62 μs 20.77 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix bvd_patch T200_L20_S5 / Mooncake reverse 123.83 μs 124.62 μs ⚪ 1.01× ⚪ 1.0×
AD gradients / Matrix custom_modifier T200_L20_S1 / ForwardDiff 446.34 μs 448.27 μs ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix bvd_patch T200_L20_S5 / ForwardDiff 14.34 ms 14.29 ms ⚪ 1.0× ⚪ 1.0×
AD gradients / Matrix bvd_renewal_call T200_L20_S1 / Enzyme reverse 16.01 μs 16.06 μs ⚪ 1.0× ⚪ 1.0×

@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

📖 Documentation preview is ready!

View the docs for this PR at: https://EpiAware.github.io/ComposableRecurrences.jl/previews/PR1033/

This preview will be updated automatically when you push new commits.

The forward check of a constant output buffer still called the removed
gate, so the item stopped at an undefined name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WwC7ixCuG9cWCUmCJUmbPL
GPUArrays before 11.5.11 calls csc_type on a sparse matrix instance but
defines it only on the type, so a device sparse movement fails with a
MethodError in place of the package's own error. 11.5.11 is the first
release with csc_type and csr_type on an instance.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WwC7ixCuG9cWCUmCJUmbPL
@seabbs
seabbs merged commit e1239a9 into main Dec 3, 2026
18 of 30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

llm-reviewed Reviewed by seabbs-review-bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants