Skip to content

Commit 9d730c8

Browse files
committed
SuiteSparse_GPU_jll build 5.10.1+1
1 parent 47a5283 commit 9d730c8

9 files changed

+206
-142
lines changed

.pkg/platform_augmentation.jl

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
using Base.BinaryPlatforms
2+
3+
try
4+
using CUDA_Runtime_jll
5+
catch
6+
# during initial package installation, CUDA_Runtime_jll may not be available.
7+
# in that case, we just won't select an artifact.
8+
end
9+
10+
function cuda_comparison_strategy(a::String, b::String, a_requested::Bool, b_requested::Bool)
11+
if a == "none" || b == "none"
12+
return false
13+
end
14+
if a == "local" || b == "local"
15+
return a == b
16+
end
17+
a = VersionNumber(a)
18+
b = VersionNumber(b)
19+
20+
# If both b and a requested, then we fall back to equality:
21+
if a_requested && b_requested
22+
return Base.thisminor(a) == Base.thisminor(b)
23+
end
24+
25+
# Otherwise, do the comparison between the the single version cap and the single version:
26+
function is_compatible(artifact::VersionNumber, host::VersionNumber)
27+
if host >= v"11.0"
28+
# enhanced compatibility, semver-style
29+
artifact.major == host.major &&
30+
Base.thisminor(artifact) <= Base.thisminor(host)
31+
else
32+
Base.thisminor(artifact) == Base.thisminor(host)
33+
end
34+
end
35+
if a_requested
36+
is_compatible(b, a)
37+
else
38+
is_compatible(a, b)
39+
end
40+
end
41+
42+
function augment_platform!(platform::Platform)
43+
if !@isdefined(CUDA_Runtime_jll)
44+
# don't set to nothing or Pkg will download any artifact
45+
platform["cuda"] = "none"
46+
end
47+
48+
if !haskey(platform, "cuda")
49+
CUDA_Runtime_jll.augment_platform!(platform)
50+
end
51+
BinaryPlatforms.set_compare_strategy!(platform, "cuda", cuda_comparison_strategy)
52+
return platform
53+
end

.pkg/select_artifacts.jl

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
push!(Base.LOAD_PATH, dirname(@__DIR__))
2+
3+
using TOML, Artifacts, Base.BinaryPlatforms
4+
include("./platform_augmentation.jl")
5+
artifacts_toml = joinpath(dirname(@__DIR__), "Artifacts.toml")
6+
7+
# Get "target triplet" from ARGS, if given (defaulting to the host triplet otherwise)
8+
target_triplet = get(ARGS, 1, Base.BinaryPlatforms.host_triplet())
9+
10+
# Augment this platform object with any special tags we require
11+
platform = augment_platform!(HostPlatform(parse(Platform, target_triplet)))
12+
13+
# Select all downloadable artifacts that match that platform
14+
artifacts = select_downloadable_artifacts(artifacts_toml; platform, include_lazy=true)
15+
16+
#Output the result to `stdout` as a TOML dictionary
17+
TOML.print(stdout, artifacts)

Artifacts.toml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
11
[[SuiteSparse_GPU]]
22
arch = "x86_64"
3-
git-tree-sha1 = "fa4afe3277e03bea15716df92d5a689e2d7ace1b"
3+
cuda = "10.2"
4+
git-tree-sha1 = "8282996a8d254a1f71b899d03f350d1ba79d88b2"
5+
lazy = true
46
libc = "glibc"
57
os = "linux"
68

79
[[SuiteSparse_GPU.download]]
8-
sha256 = "7a20c919b2e91309f1fc11bbc5aec54fa1db5657b4112451cfbeab15bd788b9e"
9-
url = "https://github.com/JuliaBinaryWrappers/SuiteSparse_GPU_jll.jl/releases/download/SuiteSparse_GPU-v5.10.1+0/SuiteSparse_GPU.v5.10.1.x86_64-linux-gnu.tar.gz"
10+
sha256 = "411e956d3c78bd3d46adef4478ec72f95ae77238a6aff17ddba82a743c76febb"
11+
url = "https://github.com/JuliaBinaryWrappers/SuiteSparse_GPU_jll.jl/releases/download/SuiteSparse_GPU-v5.10.1+1/SuiteSparse_GPU.v5.10.1.x86_64-linux-gnu-cuda+10.2.tar.gz"
12+
[[SuiteSparse_GPU]]
13+
arch = "x86_64"
14+
cuda = "11.0"
15+
git-tree-sha1 = "03a78cb9109ddf950ed390995ff9cb8610495159"
16+
lazy = true
17+
libc = "glibc"
18+
os = "linux"
19+
20+
[[SuiteSparse_GPU.download]]
21+
sha256 = "bc030afa06773769758a0a11c80e771c470f768bac77aa7d46bea25787735a1c"
22+
url = "https://github.com/JuliaBinaryWrappers/SuiteSparse_GPU_jll.jl/releases/download/SuiteSparse_GPU-v5.10.1+1/SuiteSparse_GPU.v5.10.1.x86_64-linux-gnu-cuda+11.0.tar.gz"

Project.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,19 @@
11
name = "SuiteSparse_GPU_jll"
22
uuid = "d273dfef-62f2-5f88-806b-f32b81b662f1"
3-
version = "5.10.1+0"
3+
version = "5.10.1+1"
44

55
[deps]
66
JLLWrappers = "692b3bcd-3c85-4b1f-b108-f13ce0eb3210"
77
libblastrampoline_jll = "8e850b90-86db-534c-a0d3-1478176c7d93"
88
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
9-
MPFR_jll = "3a97d323-0669-5f0c-9066-3539efd106a3"
10-
GMP_jll = "781609d7-10c4-51f6-84f2-b8444358ff6d"
9+
LazyArtifacts = "4af54fe1-eca0-43a8-85a7-787d91b784e3"
10+
CUDA_Runtime_jll = "76a88914-d11a-5bdc-97e0-2f5a05c973a2"
1111
Libdl = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
12+
SuiteSparse_jll = "bea87d4a-7f5b-5778-9afe-8cc45184846c"
1213
METIS_jll = "d00139f3-1899-568f-a2f0-47f597d42d70"
14+
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
1315
Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
1416

1517
[compat]
16-
JLLWrappers = "1.2.0"
17-
julia = "1.0"
18+
JLLWrappers = "1.4.0"
19+
julia = "1.7"

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,39 @@
1-
# `SuiteSparse_GPU_jll.jl` (v5.10.1+0)
1+
# `SuiteSparse_GPU_jll.jl` (v5.10.1+1)
22

3-
This is an autogenerated package constructed using [`BinaryBuilder.jl`](https://github.com/JuliaPackaging/BinaryBuilder.jl). The originating [`build_tarballs.jl`](https://github.com/JuliaPackaging/Yggdrasil/blob/1742d889b37833ffe1a34f0e1938ea7486436b6c/S/SuiteSparse/SuiteSparse_GPU/build_tarballs.jl) script can be found on [`Yggdrasil`](https://github.com/JuliaPackaging/Yggdrasil/), the community build tree. If you have any issue, please report it to the Yggdrasil [bug tracker](https://github.com/JuliaPackaging/Yggdrasil/issues).
3+
[![deps](https://juliahub.com/docs/SuiteSparse_GPU_jll/deps.svg)](https://juliahub.com/ui/Packages/SuiteSparse_GPU_jll/vIIES?page=2)
44

5-
For more details about JLL packages and how to use them, see `BinaryBuilder.jl` [documentation](https://juliapackaging.github.io/BinaryBuilder.jl/dev/jll/).
5+
This is an autogenerated package constructed using [`BinaryBuilder.jl`](https://github.com/JuliaPackaging/BinaryBuilder.jl).
6+
7+
The originating [`build_tarballs.jl`](https://github.com/JuliaPackaging/Yggdrasil/blob/4ffc953e7e4d82099d378531612a4d79ee6742d8/S/SuiteSparse/SuiteSparse_GPU/build_tarballs.jl) script can be found on [`Yggdrasil`](https://github.com/JuliaPackaging/Yggdrasil/), the community build tree.
8+
9+
## Bug Reports
10+
11+
If you have any issue, please report it to the Yggdrasil [bug tracker](https://github.com/JuliaPackaging/Yggdrasil/issues).
12+
13+
## Documentation
14+
15+
For more details about JLL packages and how to use them, see `BinaryBuilder.jl` [documentation](https://docs.binarybuilder.org/stable/jll/).
616

717
## Sources
818

919
The tarballs for `SuiteSparse_GPU_jll.jl` have been built from these sources:
1020

1121
* git repository: https://github.com/DrTimothyAldenDavis/SuiteSparse.git (revision: `538273cfd53720a10e34a3d80d3779b607e1ac26`)
12-
* files in directory, relative to originating `build_tarballs.jl`: [`./bundled`](https://github.com/JuliaPackaging/Yggdrasil/tree/1742d889b37833ffe1a34f0e1938ea7486436b6c/S/SuiteSparse/SuiteSparse_GPU/bundled)
22+
* files in directory, relative to originating `build_tarballs.jl`: [`./bundled`](https://github.com/JuliaPackaging/Yggdrasil/tree/4ffc953e7e4d82099d378531612a4d79ee6742d8/S/SuiteSparse/SuiteSparse_GPU/bundled)
1323

1424
## Platforms
1525

1626
`SuiteSparse_GPU_jll.jl` is available for the following platforms:
1727

18-
* `Linux x86_64 {libc=glibc}` (`x86_64-linux-gnu`)
28+
* `Linux x86_64 {cuda=11.0, libc=glibc}` (`x86_64-linux-gnu-cuda+11.0`)
1929

2030
## Dependencies
2131

2232
The following JLL packages are required by `SuiteSparse_GPU_jll.jl`:
2333

24-
* [`GMP_jll`](https://github.com/JuliaBinaryWrappers/GMP_jll.jl)
34+
* [`CUDA_Runtime_jll`](https://github.com/JuliaBinaryWrappers/CUDA_Runtime_jll.jl)
2535
* [`METIS_jll`](https://github.com/JuliaBinaryWrappers/METIS_jll.jl)
26-
* [`MPFR_jll`](https://github.com/JuliaBinaryWrappers/MPFR_jll.jl)
36+
* [`SuiteSparse_jll`](https://github.com/JuliaBinaryWrappers/SuiteSparse_jll.jl)
2737
* [`libblastrampoline_jll`](https://github.com/JuliaBinaryWrappers/libblastrampoline_jll.jl)
2838

2939
## Products
@@ -32,16 +42,6 @@ The code bindings within this package are autogenerated from the following `Prod
3242

3343
* `LibraryProduct`: `libGPUQREngine`
3444
* `LibraryProduct`: `libSuiteSparse_GPURuntime`
35-
* `LibraryProduct`: `libamd`
36-
* `LibraryProduct`: `libbtf`
37-
* `LibraryProduct`: `libcamd`
38-
* `LibraryProduct`: `libccolamd`
3945
* `LibraryProduct`: `libcholmod`
40-
* `LibraryProduct`: `libcolamd`
41-
* `LibraryProduct`: `libklu`
42-
* `LibraryProduct`: `libldl`
43-
* `LibraryProduct`: `librbio`
44-
* `LibraryProduct`: `libsliplu`
4546
* `LibraryProduct`: `libspqr`
4647
* `LibraryProduct`: `libsuitesparseconfig`
47-
* `LibraryProduct`: `libumfpack`

src/SuiteSparse_GPU_jll.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
baremodule SuiteSparse_GPU_jll
33
using Base
44
using Base: UUID
5+
using LazyArtifacts
6+
Base.include(@__MODULE__, joinpath("..", ".pkg", "platform_augmentation.jl"))
57
import JLLWrappers
68

79
JLLWrappers.@generate_main_file_header("SuiteSparse_GPU")
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Autogenerated wrapper script for SuiteSparse_GPU_jll for x86_64-linux-gnu-cuda+10.2
2+
export libGPUQREngine, libSuiteSparse_GPURuntime, libcholmod, libspqr, libsuitesparseconfig
3+
4+
using libblastrampoline_jll
5+
using SuiteSparse_jll
6+
using METIS_jll
7+
using CUDA_Runtime_jll
8+
JLLWrappers.@generate_wrapper_header("SuiteSparse_GPU")
9+
JLLWrappers.@declare_library_product(libGPUQREngine, "libGPUQREngine.so.1")
10+
JLLWrappers.@declare_library_product(libSuiteSparse_GPURuntime, "libSuiteSparse_GPURuntime.so.1")
11+
JLLWrappers.@declare_library_product(libcholmod, "libcholmod.so.3")
12+
JLLWrappers.@declare_library_product(libspqr, "libspqr.so.2")
13+
JLLWrappers.@declare_library_product(libsuitesparseconfig, "libsuitesparseconfig.so.5")
14+
function __init__()
15+
JLLWrappers.@generate_init_header(libblastrampoline_jll, SuiteSparse_jll, METIS_jll, CUDA_Runtime_jll)
16+
JLLWrappers.@init_library_product(
17+
libGPUQREngine,
18+
"lib/libGPUQREngine.so",
19+
RTLD_LAZY | RTLD_DEEPBIND,
20+
)
21+
22+
JLLWrappers.@init_library_product(
23+
libSuiteSparse_GPURuntime,
24+
"lib/libSuiteSparse_GPURuntime.so",
25+
RTLD_LAZY | RTLD_DEEPBIND,
26+
)
27+
28+
JLLWrappers.@init_library_product(
29+
libcholmod,
30+
"lib/libcholmod.so.3.0.14",
31+
RTLD_LAZY | RTLD_DEEPBIND,
32+
)
33+
34+
JLLWrappers.@init_library_product(
35+
libspqr,
36+
"lib/libspqr.so.2.0.9",
37+
RTLD_LAZY | RTLD_DEEPBIND,
38+
)
39+
40+
JLLWrappers.@init_library_product(
41+
libsuitesparseconfig,
42+
"lib/libsuitesparseconfig.so.5.10.1",
43+
RTLD_LAZY | RTLD_DEEPBIND,
44+
)
45+
46+
JLLWrappers.@generate_init_footer()
47+
end # __init__()
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Autogenerated wrapper script for SuiteSparse_GPU_jll for x86_64-linux-gnu-cuda+11.0
2+
export libGPUQREngine, libSuiteSparse_GPURuntime, libcholmod, libspqr, libsuitesparseconfig
3+
4+
using libblastrampoline_jll
5+
using SuiteSparse_jll
6+
using METIS_jll
7+
using CUDA_Runtime_jll
8+
JLLWrappers.@generate_wrapper_header("SuiteSparse_GPU")
9+
JLLWrappers.@declare_library_product(libGPUQREngine, "libGPUQREngine.so.1")
10+
JLLWrappers.@declare_library_product(libSuiteSparse_GPURuntime, "libSuiteSparse_GPURuntime.so.1")
11+
JLLWrappers.@declare_library_product(libcholmod, "libcholmod.so.3")
12+
JLLWrappers.@declare_library_product(libspqr, "libspqr.so.2")
13+
JLLWrappers.@declare_library_product(libsuitesparseconfig, "libsuitesparseconfig.so.5")
14+
function __init__()
15+
JLLWrappers.@generate_init_header(libblastrampoline_jll, SuiteSparse_jll, METIS_jll, CUDA_Runtime_jll)
16+
JLLWrappers.@init_library_product(
17+
libGPUQREngine,
18+
"lib/libGPUQREngine.so",
19+
RTLD_LAZY | RTLD_DEEPBIND,
20+
)
21+
22+
JLLWrappers.@init_library_product(
23+
libSuiteSparse_GPURuntime,
24+
"lib/libSuiteSparse_GPURuntime.so",
25+
RTLD_LAZY | RTLD_DEEPBIND,
26+
)
27+
28+
JLLWrappers.@init_library_product(
29+
libcholmod,
30+
"lib/libcholmod.so.3.0.14",
31+
RTLD_LAZY | RTLD_DEEPBIND,
32+
)
33+
34+
JLLWrappers.@init_library_product(
35+
libspqr,
36+
"lib/libspqr.so.2.0.9",
37+
RTLD_LAZY | RTLD_DEEPBIND,
38+
)
39+
40+
JLLWrappers.@init_library_product(
41+
libsuitesparseconfig,
42+
"lib/libsuitesparseconfig.so.5.10.1",
43+
RTLD_LAZY | RTLD_DEEPBIND,
44+
)
45+
46+
JLLWrappers.@generate_init_footer()
47+
end # __init__()

0 commit comments

Comments
 (0)