Skip to content

Commit 26c5191

Browse files
authored
Move backend to GPUArraysCore.jl (#420)
1 parent b24f0b5 commit 26c5191

File tree

5 files changed

+14
-13
lines changed

5 files changed

+14
-13
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "GPUArrays"
22
uuid = "0c68f7d7-f131-5f86-a1c3-88cf8149b2d7"
3-
version = "8.4.2"
3+
version = "8.4.3"
44

55
[deps]
66
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
@@ -15,7 +15,7 @@ Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2"
1515

1616
[compat]
1717
Adapt = "2.0, 3.0"
18-
GPUArraysCore = "= 0.1.1"
18+
GPUArraysCore = "= 0.1.2"
1919
LLVM = "3.9, 4"
2020
Reexport = "1"
2121
julia = "1.6"

lib/GPUArraysCore/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "GPUArraysCore"
22
uuid = "46192b85-c4d5-4398-a991-12ede77f4527"
33
authors = ["Tim Besard <tim.besard@gmail.com>"]
4-
version = "0.1.1"
4+
version = "0.1.2"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

lib/GPUArraysCore/src/GPUArraysCore.jl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,5 +111,13 @@ macro allowscalar(ex)
111111
end
112112
end
113113

114+
"""
115+
backend(T::Type)
116+
backend(x)
117+
118+
Gets the GPUArrays back-end responsible for managing arrays of type `T`.
119+
"""
120+
backend(::Type) = error("This object is not a GPU array") # COV_EXCL_LINE
121+
backend(x) = backend(typeof(x))
114122

115123
end # module GPUArraysCore

lib/JLArrays/Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "JLArrays"
22
uuid = "27aeb0d3-9eb9-45fb-866b-73c2ecf80fcb"
33
authors = ["Tim Besard <tim.besard@gmail.com>"]
4-
version = "0.1.0"
4+
version = "0.1.1"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
@@ -10,5 +10,5 @@ Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1010

1111
[compat]
1212
Adapt = "2.0, 3.0"
13-
GPUArrays = "8.4.1"
13+
GPUArrays = "~8.4.1"
1414
julia = "1.6"

src/device/execution.jl

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,7 @@ abstract type AbstractGPUBackend end
66

77
abstract type AbstractKernelContext end
88

9-
"""
10-
backend(T::Type)
11-
backend(x)
12-
13-
Gets the GPUArrays back-end responsible for managing arrays of type `T`.
14-
"""
15-
backend(::Type) = error("This object is not a GPU array") # COV_EXCL_LINE
16-
backend(x) = backend(typeof(x))
9+
import GPUArraysCore: backend
1710

1811
"""
1912
gpu_call(kernel::Function, arg0, args...; kwargs...)

0 commit comments

Comments
 (0)