Skip to content

Commit f3610c0

Browse files
ViralBShahViral Shah
and
Viral Shah
authored
SuiteSparse 7.10.1 wrappers and simpliefied wrapper generator process (#608)
Co-authored-by: Viral Shah <[email protected]>
1 parent 9548149 commit f3610c0

File tree

5 files changed

+26
-17
lines changed

5 files changed

+26
-17
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Pkg = "<0.0.1, 1"
1919
Printf = "<0.0.1, 1"
2020
Random = "<0.0.1, 1"
2121
Serialization = "<0.0.1, 1"
22-
SuiteSparse_jll = "7.8.0"
22+
SuiteSparse_jll = "7.10.1"
2323
Test = "<0.0.1, 1"
2424
julia = "1.11"
2525

gen/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
SuiteSparse*

gen/Makefile

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
VER=7.10.1
2+
3+
all: clean download
4+
mkdir -p SuiteSparse-$(VER)
5+
cd SuiteSparse-$(VER) && tar -zxvf ../SuiteSparse.v$(VER).x86_64-linux-gnu.tar.gz
6+
julia --project -e "using Pkg; Pkg.instantiate()"
7+
julia --project generator.jl ./SuiteSparse-$(VER)
8+
9+
clean:
10+
rm -fr *.tar.gz SuiteSparse*
11+
12+
download:
13+
curl -L -O https://github.com/JuliaBinaryWrappers/SuiteSparse_jll.jl/releases/download/SuiteSparse-v$(VER)%2B0/SuiteSparse.v$(VER).x86_64-linux-gnu.tar.gz

gen/README.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
11
# How to auto-generate the wrappers
22

33
1. `cd` to this directory
4-
2. run `julia --project generator.jl`, then you could find the updated wrappers in the `lib` folder
4+
2. Update the SuiteSparse version in `Makefile`
5+
3. run `make`, then you could find the updated wrappers in the `lib` folder
56

6-
## How to upgrade SuiteSparse_jll
7-
8-
1. update `SuiteSparse_jll` in Yggdrasil to the desired version
9-
2. `cd` to this directory
10-
3. run `julia --project generator.jl <SuiteSparse artifact directory>`
11-
12-
## How to upgrade Clang.jl
7+
# How to upgrade Clang.jl
138

149
1. `cd` to this directory
1510
2. if you want to change major version, change the compat bound in `Project.toml`.

src/solvers/wrappers.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3364,13 +3364,13 @@ const CHOLMOD_INT = 0
33643364

33653365
const CHOLMOD_LONG = 2
33663366

3367-
const CHOLMOD_DATE = "June 20, 2024"
3367+
const CHOLMOD_DATE = "Feb 20, 2025"
33683368

33693369
const CHOLMOD_MAIN_VERSION = 5
33703370

33713371
const CHOLMOD_SUB_VERSION = 3
33723372

3373-
const CHOLMOD_SUBSUB_VERSION = 0
3373+
const CHOLMOD_SUBSUB_VERSION = 1
33743374

33753375
SUITESPARSE_VER_CODE(main, sub) = main * 1000 + sub
33763376

@@ -3404,23 +3404,23 @@ const SUITESPARSE_COMPILER_XLC = 0
34043404

34053405
const SUITESPARSE_TIME = SuiteSparse_time()
34063406

3407-
const SUITESPARSE_DATE = "Oct 10, 2024"
3407+
const SUITESPARSE_DATE = "Mar 6, 2025"
34083408

34093409
const SUITESPARSE_MAIN_VERSION = 7
34103410

3411-
const SUITESPARSE_SUB_VERSION = 8
3411+
const SUITESPARSE_SUB_VERSION = 10
34123412

3413-
const SUITESPARSE_SUBSUB_VERSION = 3
3413+
const SUITESPARSE_SUBSUB_VERSION = 1
34143414

3415-
const SUITESPARSE_VERSION = SUITESPARSE_VER_CODE(7, 8)
3415+
const SUITESPARSE_VERSION = SUITESPARSE_VER_CODE(7, 10)
34163416

34173417
function SUITESPARSE__VERCODE(main, sub, patch)
34183418
return (main * Culonglong(1000) + sub) * Culonglong(1000) + patch
34193419
end
34203420

3421-
const SUITESPARSE__VERSION = SUITESPARSE__VERCODE(7, 8, 3)
3421+
const SUITESPARSE__VERSION = SUITESPARSE__VERCODE(7, 10, 1)
34223422

3423-
const CHOLMOD__VERSION = SUITESPARSE__VERCODE(5, 3, 0)
3423+
const CHOLMOD__VERSION = SUITESPARSE__VERCODE(5, 3, 1)
34243424

34253425
const CHOLMOD_DEVICE_SUPERNODE_BUFFERS = 6
34263426

0 commit comments

Comments
 (0)