Skip to content

Commit 8a6a1e9

Browse files
amontoisonmaleadt
andauthored
Updates for CUDA v12.5.1 (#2436)
Co-authored-by: Tim Besard <tim.besard@gmail.com>
1 parent a90cba1 commit 8a6a1e9

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

lib/cusparse/libcusparse.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5999,6 +5999,7 @@ end
59995999
CUSPARSE_SPMM_CSR_ALG2 = 6
60006000
CUSPARSE_SPMM_CSR_ALG3 = 12
60016001
CUSPARSE_SPMM_BLOCKED_ELL_ALG1 = 13
6002+
CUSPARSE_SPMM_BSR_ALG1 = 14
60026003
end
60036004

60046005
@checked function cusparseSpMM_bufferSize(handle, opA, opB, alpha, matA, matB, beta, matC,

res/wrap/Manifest.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ version = "0.12.1+0"
3535

3636
[[CUDA_SDK_jll]]
3737
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg"]
38-
git-tree-sha1 = "1691bf2d27aad90aff1caaef945cac954012d68d"
38+
git-tree-sha1 = "80fd67c63eb0b0f7228383ace9d7b293f6306727"
3939
uuid = "6cbf2f2e-7e60-5632-ac76-dca2274e0be0"
40-
version = "12.5.0+0"
40+
version = "12.5.1+0"
4141

4242
[[CUDNN_jll]]
4343
deps = ["Artifacts", "CUDA_Runtime_jll", "JLLWrappers", "LazyArtifacts", "Libdl", "TOML"]

src/utilities.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ function versioninfo(io::IO=stdout)
6565
mod = getfield(CUDA, lib)
6666
println(io, "- $lib: ", mod.version())
6767
end
68-
println(io, "- CUPTI: ", CUPTI.version())
68+
println(io, "- CUPTI: $(CUPTI.library_version()) (API $(CUPTI.version()))")
6969
println(io, "- NVML: ", has_nvml() ? NVML.version() : "missing")
7070
println(io)
7171

test/core/codegen.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ end
193193
valid_kernel() = return
194194
invalid_kernel() = 1
195195

196-
if can_use_cupti() && CUPTI.library_version() != v"2024.2.0" # NVIDIA bug #4667039
196+
if can_use_cupti() && !(v"2024.2.0" <= CUPTI.library_version()) # NVIDIA bug #4667039
197197
@test CUDA.code_sass(devnull, valid_kernel, Tuple{}) == nothing
198198
@test_throws CUDA.KernelError CUDA.code_sass(devnull, invalid_kernel, Tuple{})
199199
end
@@ -204,15 +204,15 @@ end
204204

205205
@eval kernel_341(ptr) = (@inbounds unsafe_store!(ptr, $(Symbol("dummy_^"))(unsafe_load(ptr))); nothing)
206206

207-
if can_use_cupti() && CUPTI.library_version() != v"2024.2.0" # NVIDIA bug #4667039
207+
if can_use_cupti() && !(v"2024.2.0" <= CUPTI.library_version()) # NVIDIA bug #4667039
208208
CUDA.code_sass(devnull, kernel_341, Tuple{Ptr{Int}})
209209
end
210210
end
211211

212212
@testset "device runtime" begin
213213
kernel() = (CUDA.cudaGetLastError(); return)
214214

215-
if can_use_cupti() && CUPTI.library_version() != v"2024.2.0" # NVIDIA bug #4667039
215+
if can_use_cupti() && !(v"2024.2.0" <= CUPTI.library_version()) # NVIDIA bug #4667039
216216
CUDA.code_sass(devnull, kernel, Tuple{})
217217
end
218218
end

test/core/execution.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ end
7777
CUDA.code_warntype(devnull, dummy, Tuple{})
7878
CUDA.code_llvm(devnull, dummy, Tuple{})
7979
CUDA.code_ptx(devnull, dummy, Tuple{})
80-
if can_use_cupti() && CUPTI.library_version() != v"2024.2.0" # NVIDIA bug #4667039
80+
if can_use_cupti() && !(v"2024.2.0" <= CUPTI.library_version()) # NVIDIA bug #4667039
8181
# functions defined in Julia
8282
sass = sprint(io->CUDA.code_sass(io, dummy, Tuple{}))
8383
@test occursin(".text._Z5dummy", sass)
@@ -96,7 +96,7 @@ end
9696
@device_code_warntype io=devnull @cuda dummy()
9797
@device_code_llvm io=devnull @cuda dummy()
9898
@device_code_ptx io=devnull @cuda dummy()
99-
if can_use_cupti() && CUPTI.library_version() != v"2024.2.0" # NVIDIA bug #4667039
99+
if can_use_cupti() && !(v"2024.2.0" <= CUPTI.library_version()) # NVIDIA bug #4667039
100100
# functions defined in Julia
101101
sass = sprint(io->@device_code_sass io=io @cuda dummy())
102102
@test occursin(".text._Z5dummy", sass)
@@ -120,7 +120,7 @@ end
120120
@test occursin("dummy", sprint(io->(@device_code_llvm io=io optimize=false @cuda dummy())))
121121
@test occursin("dummy", sprint(io->(@device_code_llvm io=io @cuda dummy())))
122122
@test occursin("dummy", sprint(io->(@device_code_ptx io=io @cuda dummy())))
123-
if can_use_cupti() && CUPTI.library_version() != v"2024.2.0" # NVIDIA bug #4667039
123+
if can_use_cupti() && !(v"2024.2.0" <= CUPTI.library_version()) # NVIDIA bug #4667039
124124
@test occursin("dummy", sprint(io->(@device_code_sass io=io @cuda dummy())))
125125
end
126126

0 commit comments

Comments
 (0)