-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to latest SuiteSparse and auto-generate wrappers (#18)
* Update clang generator * Remove klu_lib.jl and use auto-generated wrappers.jl * Only works on 1.10 - since it has to be synced with SuiteSparse * Update docs/make.jl * Update CI matrix to test only on 1.10 and introduce all platforms
- Loading branch information
1 parent
aee5644
commit 5162d1f
Showing
23 changed files
with
937 additions
and
6,504 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
name = "KLU" | ||
uuid = "ef3ab10e-7fda-4108-b977-705223b18434" | ||
authors = ["Wimmerer <[email protected]> and contributors"] | ||
version = "0.4.1" | ||
version = "0.5.0" | ||
|
||
[deps] | ||
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" | ||
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf" | ||
SuiteSparse_jll = "bea87d4a-7f5b-5778-9afe-8cc45184846c" | ||
|
||
[compat] | ||
julia = "1.6" | ||
julia = "1.10" | ||
|
||
[extras] | ||
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
[deps] | ||
Clang = "40e3b903-d033-50b4-a0cc-940c62c95e31" | ||
Clang = "40e3b903-d033-50b4-a0cc-940c62c95e31" | ||
SuiteSparse_jll = "bea87d4a-7f5b-5778-9afe-8cc45184846c" | ||
|
||
[compat] | ||
Clang = "0.17" |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,80 @@ | ||
[general] | ||
library_name = "libklu" | ||
library_names = {"SuiteSparse_config.h" = "libsuitesparseconfig", "klu.h" = "libklu", "amd.h" = "libamd", "btf.h" = "libbtf"} | ||
|
||
use_julia_native_enum_type = true | ||
use_deterministic_symbol = true | ||
auto_mutability = true | ||
|
||
printer_blacklist = [ | ||
output_ignorelist = [ | ||
# Clang.jl cannot handle these macro correctly, skip for now. | ||
"SuiteSparse_long_id" | ||
"UMFPACK_COPYRIGHT", | ||
"UMFPACK_LICENSE_PART1", | ||
"UMFPACK_LICENSE_PART2", | ||
"UMFPACK_LICENSE_PART3", | ||
"SuiteSparse_long", | ||
"SuiteSparse_long_max", | ||
"SuiteSparse_long_id", | ||
"CHOLMOD_CUBLAS_HANDLE", | ||
"CHOLMOD_CUDASTREAM", | ||
"CHOLMOD_CUDAEVENT", | ||
# useless macros | ||
"CHOLMOD_CPU_GEMM_CALLS", | ||
"CHOLMOD_CPU_SYRK_CALLS", | ||
"CHOLMOD_CPU_TRSM_CALLS", | ||
"CHOLMOD_CPU_POTRF_CALLS", | ||
"CHOLMOD_GPU_GEMM_CALLS", | ||
"CHOLMOD_GPU_SYRK_CALLS", | ||
"CHOLMOD_GPU_TRSM_CALLS", | ||
"CHOLMOD_GPU_POTRF_CALLS", | ||
"CHOLMOD_CPU_GEMM_TIME", | ||
"CHOLMOD_CPU_SYRK_TIME", | ||
"CHOLMOD_CPU_TRSM_TIME", | ||
"CHOLMOD_CPU_POTRF_TIME", | ||
"CHOLMOD_GPU_GEMM_TIME", | ||
"CHOLMOD_GPU_SYRK_TIME", | ||
"CHOLMOD_GPU_TRSM_TIME", | ||
"CHOLMOD_GPU_POTRF_TIME", | ||
"CHOLMOD_ASSEMBLE_TIME", | ||
"CHOLMOD_ASSEMBLE_TIME2", | ||
"SuiteSparse_long_idd", | ||
"SUITESPARSE_COMPILER_MAJOR", | ||
"SUITESPARSE_COMPILER_MINOR", | ||
"SUITESPARSE_COMPILER_SUB", | ||
"SUITESPARSE_COMPILER_NAME", | ||
"SUITESPARSE_STDC_VERSION", | ||
"SUITESPARSE_RESTRICT", | ||
"SUITESPARSE_LAPACK_[A-Z0-9]+", | ||
"SUITESPARSE_BLAS_[A-Z0-9]+", | ||
"SUITESPARSE_BLAS_DNRM2", | ||
"SUITESPARSE_BLAS_DZNRM2", | ||
"UMFPACK_VERSION", | ||
] | ||
|
||
[codegen] | ||
use_ccall_macro = true | ||
use_ccall_macro = false | ||
|
||
[codegen.macro] | ||
macro_mode = "basic" | ||
|
||
functionlike_macro_whitelist = [ | ||
functionlike_macro_includelist = [ | ||
"SUITESPARSE_VER_CODE", | ||
"KLU_VERSION_CODE" | ||
"SUITESPARSE__VERCODE", | ||
"CHOLMOD_VER_CODE", | ||
"CHOLMOD__VERCODE", | ||
"SPQR_VER_CODE", | ||
"SPQR__VERCODE", | ||
"AMD_VERSION_CODE", | ||
"AMD__VERCODE", | ||
"UMFPACK_VER_CODE", | ||
"UMFPACK__VERCODE", | ||
"COLAMD_VERSION_CODE", | ||
"COLAMD__VERCODE", | ||
"KLU_VERSION_CODE", | ||
"KLU__VERCODE", | ||
"BTF_VERSION_CODE", | ||
"BTF__VERCODE", | ||
"CCOLAMD_VERSION_CODE", | ||
"CCOLAMD__VERCODE", | ||
"KLU_VERSION_CODE", | ||
"KLU__VERCODE", | ||
] |
Oops, something went wrong.