Repository navigation
Fix AMD extension for AMD.jl 0.5.4 (SS_Int removed) - #71
Merged
ChrisRackauckas merged 2 commits intoSep 4, 2026
Merged
Conversation
AMD.jl 0.5.4 (JuliaSmoothOptimizers/AMD.jl#81) deleted the unexported `AMD.SS_Int` constant and hardcodes `Int64` in its `_l` colamd wrappers to match SuiteSparse >= 6. The extension read `AMD.SS_Int` at call time, so every `:amd` ordering failed with `UndefVarError: SS_Int not defined in AMD` on 0.5.4, breaking precompilation of LinearSolve and the test environments of everything downstream of it. Resolve the integer type once at extension load: `AMD.SS_Int` when it exists (AMD < 0.5.4), `Int64` otherwise. Adds a test that drives `_amd_colperm` directly and checks it against the public `AMD.colamd`. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude Fable 5.1 <[email protected]> Agent-Harness: Claude Code 2.1.259 Agent-Model: claude-fable-5-1 Agent-Session: https://claude.ai/code/session_01FeJYXni9MkJhPFA9yxYvfn
Replace the remaining calls to unexported AMD internals with the supported high-level colamd interface. Reconstruct the structural CSC matrix, remove the ExplicitImports exemptions, and test the public ordering path. Co-Authored-By: Chris Rackauckas <[email protected]> Co-Authored-By: Claude <[email protected]> Claude-Session: https://chatgpt.com/codex/tasks/01a03a17-ad6f-7131-82fc-d0fd57ea6512
Member
Author
|
Follow-up commit 7282aae replaces the compatibility shim and all remaining private AMD wrapper calls with the exported |
2 tasks done
ChrisRackauckas
marked this pull request as ready for review
September 4, 2026 17:33
8 tasks done
Member
Author
|
@JuliaRegistrator register |
|
Comments on pull requests will not trigger Registrator, as it is disabled. Please try commenting on a commit or issue. |
This was referenced Sep 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important
Ignore this PR until it has been reviewed by @ChrisRackauckas.
What changed and why
AMD 0.5.4 removed
SS_Int, exposing that the AMD extension relied on several unexported low-level wrapper names. The extension now reconstructs the Boolean structuralSparseMatrixCSCrepresented by its CSR inputs and calls AMD's exportedcolamd(::SparseMatrixCSC)API. The obsolete ExplicitImports exemptions are removed, the publicscpqr_analyze(...; ordering = :amd)path is tested directly againstAMD.colamd, and the patch release is bumped from 2.1.7 to 2.1.8.This clean-main failure currently prevents LinearSolve and other newly resolved SciML environments from precompiling.
Failing before
The new regression test on the unfixed extension with AMD 0.5.4:
The full Core group stopped in
Core/csc_core.jlwith 7 passes and 12 errors, all from the same missing binding.Passing after
The new regression test also passed 2/2 with the supported lower bound AMD 0.5.1. Runic 1.10.0, typos 1.47.0, and
git diff --checkpassed.Not verified
Links
SS_Int: JuliaSmoothOptimizers/AMD.jl@2366c88🤖 Generated with Claude Code
https://chatgpt.com/codex/tasks/01a03a17-ad6f-7131-82fc-d0fd57ea6512