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

Commit 8d0554c

Browse files
committed
Remove prefix() getter.
1 parent bbe2b84 commit 8d0554c

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

Manifest.toml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ version = "6.0.1"
4040

4141
[[CUDAnative]]
4242
deps = ["Adapt", "BinaryProvider", "CEnum", "CUDAapi", "CUDAdrv", "DataStructures", "InteractiveUtils", "LLVM", "Libdl", "MacroTools", "Pkg", "Printf", "TimerOutputs"]
43-
git-tree-sha1 = "5f4a888cc612d146a9af4f72cb96c182b024d950"
44-
repo-rev = "f219a2d229ca5dfb08095272ae13762bec087f25"
43+
git-tree-sha1 = "3cb0177c99118cbf75f734dd9b4a4bc25d636148"
44+
repo-rev = "ffdd6b2"
4545
repo-url = "https://github.com/JuliaGPU/CUDAnative.jl.git"
4646
uuid = "be33ccc6-a3ff-5ff2-a52e-74243cff1e17"
4747
version = "2.10.2"
@@ -79,7 +79,6 @@ uuid = "929cbde3-209d-540e-8aea-75f648917ca0"
7979
version = "1.3.4"
8080

8181
[[LibGit2]]
82-
deps = ["Printf"]
8382
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
8483

8584
[[Libdl]]
@@ -115,7 +114,7 @@ uuid = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
115114
version = "1.1.0"
116115

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

121120
[[Printf]]

src/bindeps.jl

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ using Libdl
66

77
## global state
88

9-
const __dirs = Ref{Vector{String}}()
109
const __version = Ref{VersionNumber}()
1110

1211
const __libcublas = Ref{String}()
@@ -70,7 +69,6 @@ function use_artifact_cuda()
7069
@debug "Could not find a compatible artifact."
7170
return false
7271
end
73-
__dirs[] = [artifact.dir]
7472

7573
nvdisasm = get_binary(artifact.dir, "nvdisasm")
7674
@assert isfile(nvdisasm)
@@ -103,7 +101,6 @@ function use_local_cuda()
103101
@debug "Trying to use local installation..."
104102

105103
cuda_dirs = find_toolkit()
106-
__dirs[] = cuda_dirs
107104

108105
tool = find_cuda_binary("nvdisasm")
109106
tool == nothing && error("Your CUDA installation does not provide the nvdisasm binary")
@@ -270,13 +267,6 @@ macro initialized(ex)
270267
end
271268
end
272269

273-
"""
274-
prefix()
275-
276-
Returns the installation prefix directories of the CUDA toolkit in use.
277-
"""
278-
prefix() = @initialized(__dirs[])
279-
280270
"""
281271
version()
282272

0 commit comments

Comments
 (0)