Repository navigation
Raise the Julia floor to 1.12 - #1033
Conversation
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
|
The Julia 1.11 jobs of the
Generated by Claude Code |
Benchmark comparison vs baseMinimum time per call. Buckets are PR time as a % of base, so lower is faster (🟢 faster, ⚪ within 5%, 🔴 slower). Counts of benchmarks per bucket:
Evaluation — 24 benchmarks (by time change)
AD gradients — 63 benchmarks (by time change)
|
|
📖 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
Part of #930 (finding 6).
Summary
julia = "1.12, 1.13"inProject.toml, and in the CUDA and OpenCL test environments.src/, the Enzyme extensions and the AD tests.The only
VERSIONcheck left is>= v"1.13"in the AD fixtures.test,test/ad,docs,benchmark,benchmark/routes).JLArrays 0.3.1 and 0.3.2 define
csr_typeonly on an instance, so aJLSparseMatrixCSCcoupling 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.mdnames 1.12 as the oldest version for the Threads and AD versions workflows.The package-owned
ThreadsandAD versionsworkflows 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.
julia --project=test test/runtests.jl): 653 items on 4 workers, 42,420 pass, 8 broken, no failures or errors.no conversion to CSR form); with JLArrays 0.3.3, 28 pass.runtests.jl mooncake_reverseselects, 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
mainat fdd8b04 and is NoAdjoint twin of the table-cut contributions scenario runs the rule #1034.Before 11.5.11 GPUArrays calls
csc_typeon 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