Skip to content
This repository was archived by the owner on Mar 12, 2021. It is now read-only.

Commit 6ca9b4f

Browse files
committed
Adapt to changes in CUDAdrv and CUDAapi.
1 parent 2fe60ca commit 6ca9b4f

File tree

4 files changed

+16
-17
lines changed

4 files changed

+16
-17
lines changed

Manifest.toml

+11-12
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,19 @@ version = "0.2.0"
2828

2929
[[CUDAapi]]
3030
deps = ["Libdl", "Logging"]
31-
git-tree-sha1 = "56a813440ac98a1aa64672ab460a1512552211a7"
31+
git-tree-sha1 = "d9614968b9a13df433870115acff20f41e7b400a"
3232
uuid = "3895d2a7-ec45-59b8-82bb-cfc6a382f9b3"
33-
version = "2.1.0"
33+
version = "3.0.0"
3434

3535
[[CUDAdrv]]
3636
deps = ["CEnum", "CUDAapi", "Printf"]
37-
git-tree-sha1 = "1fce616fa0806c67c133eb1d2f68f0f1a7504665"
37+
git-tree-sha1 = "01e90fa34e25776bc7c8661183d4519149ebfe59"
3838
uuid = "c5f51814-7f29-56b8-a69c-e4d8f6be1fde"
39-
version = "5.0.1"
39+
version = "6.0.0"
4040

4141
[[CUDAnative]]
4242
deps = ["Adapt", "CEnum", "CUDAapi", "CUDAdrv", "DataStructures", "InteractiveUtils", "LLVM", "Libdl", "Printf", "TimerOutputs"]
43-
git-tree-sha1 = "f38cf81a0c6c08cb532b7324eb85f3e2d438bed7"
44-
repo-rev = "0f65bc6ebc9c490c068d65436dc42b93c7650fce"
45-
repo-url = "https://github.com/JuliaGPU/CUDAnative.jl.git"
43+
git-tree-sha1 = "59d6c3e313b874abc718f7d6ad02ea604f96db14"
4644
uuid = "be33ccc6-a3ff-5ff2-a52e-74243cff1e17"
4745
version = "2.10.0"
4846

@@ -79,6 +77,7 @@ uuid = "929cbde3-209d-540e-8aea-75f648917ca0"
7977
version = "1.3.3"
8078

8179
[[LibGit2]]
80+
deps = ["Printf"]
8281
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
8382

8483
[[Libdl]]
@@ -93,9 +92,9 @@ uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
9392

9493
[[MacroTools]]
9594
deps = ["DataStructures", "Markdown", "Random"]
96-
git-tree-sha1 = "e2fc7a55bb2224e203bbd8b59f72b91323233458"
95+
git-tree-sha1 = "07ee65e03e28ca88bc9a338a3726ae0c3efaa94b"
9796
uuid = "1914dd2f-81c6-5fcd-8719-6d5c9610ff09"
98-
version = "0.5.3"
97+
version = "0.5.4"
9998

10099
[[Markdown]]
101100
deps = ["Base64"]
@@ -114,7 +113,7 @@ uuid = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
114113
version = "1.1.0"
115114

116115
[[Pkg]]
117-
deps = ["Dates", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "Test", "UUIDs"]
116+
deps = ["Dates", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "REPL", "Random", "SHA", "UUIDs"]
118117
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
119118

120119
[[Printf]]
@@ -137,9 +136,9 @@ version = "0.2.0"
137136

138137
[[Requires]]
139138
deps = ["UUIDs"]
140-
git-tree-sha1 = "999513b7dea8ac17359ed50ae8ea089e4464e35e"
139+
git-tree-sha1 = "d37400976e98018ee840e0ca4f9d20baa231dc6b"
141140
uuid = "ae029012-a4dd-5104-9daa-d747884805df"
142-
version = "1.0.0"
141+
version = "1.0.1"
143142

144143
[[SHA]]
145144
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"

Project.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f"
2626
AbstractFFTs = "0.4, 0.5"
2727
Adapt = "1.0"
2828
CEnum = "0.2"
29-
CUDAapi = "2.1"
30-
CUDAdrv = "5.0"
31-
CUDAnative = "2.9"
29+
CUDAapi = "3.0"
30+
CUDAdrv = "6.0"
31+
CUDAnative = "2.10"
3232
DataStructures = "0.17"
3333
GPUArrays = "2.0"
3434
MacroTools = "0.5"

src/CuArrays.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function __init__()
8282

8383
# check if we can't find the library
8484
if Libdl.dlopen_e(handle[]) == C_NULL
85-
path = find_cuda_library(name, toolkit)
85+
path = find_cuda_library(name, CUDAnative.prefix(), [CUDAnative.version()])
8686
if path !== nothing
8787
handle[] = path
8888
end

src/memory.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function actual_alloc(bytes)::Union{Nothing,CuPtr{Nothing}}
6969
allocated[ptr] = buf
7070
return ptr
7171
catch ex
72-
ex == CUDAdrv.ERROR_OUT_OF_MEMORY || rethrow()
72+
ex.code == CUDAdrv.ERROR_OUT_OF_MEMORY || rethrow()
7373
end
7474

7575
return nothing

0 commit comments

Comments
 (0)