Skip to content

Commit

Permalink
Move backend to GPUArraysCore.jl (#420)
Browse files Browse the repository at this point in the history
  • Loading branch information
N5N3 authored Aug 17, 2022
1 parent b24f0b5 commit 26c5191
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "GPUArrays"
uuid = "0c68f7d7-f131-5f86-a1c3-88cf8149b2d7"
version = "8.4.2"
version = "8.4.3"

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

[compat]
Adapt = "2.0, 3.0"
GPUArraysCore = "= 0.1.1"
GPUArraysCore = "= 0.1.2"
LLVM = "3.9, 4"
Reexport = "1"
julia = "1.6"
2 changes: 1 addition & 1 deletion lib/GPUArraysCore/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GPUArraysCore"
uuid = "46192b85-c4d5-4398-a991-12ede77f4527"
authors = ["Tim Besard <[email protected]>"]
version = "0.1.1"
version = "0.1.2"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down
8 changes: 8 additions & 0 deletions lib/GPUArraysCore/src/GPUArraysCore.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,13 @@ macro allowscalar(ex)
end
end

"""
backend(T::Type)
backend(x)
Gets the GPUArrays back-end responsible for managing arrays of type `T`.
"""
backend(::Type) = error("This object is not a GPU array") # COV_EXCL_LINE
backend(x) = backend(typeof(x))

end # module GPUArraysCore
4 changes: 2 additions & 2 deletions lib/JLArrays/Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "JLArrays"
uuid = "27aeb0d3-9eb9-45fb-866b-73c2ecf80fcb"
authors = ["Tim Besard <[email protected]>"]
version = "0.1.0"
version = "0.1.1"

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

[compat]
Adapt = "2.0, 3.0"
GPUArrays = "8.4.1"
GPUArrays = "~8.4.1"
julia = "1.6"
9 changes: 1 addition & 8 deletions src/device/execution.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,7 @@ abstract type AbstractGPUBackend end

abstract type AbstractKernelContext end

"""
backend(T::Type)
backend(x)
Gets the GPUArrays back-end responsible for managing arrays of type `T`.
"""
backend(::Type) = error("This object is not a GPU array") # COV_EXCL_LINE
backend(x) = backend(typeof(x))
import GPUArraysCore: backend

"""
gpu_call(kernel::Function, arg0, args...; kwargs...)
Expand Down

6 comments on commit 26c5191

@maleadt
Copy link
Member

@maleadt maleadt commented on 26c5191 Jan 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nanosoldier runtests(["GPUArrays"], subdir="lib/GPUArraysCore")

@nanosoldier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your job was not accepted, please verify the trigger phrase syntax.

@maleadt
Copy link
Member

@maleadt maleadt commented on 26c5191 Jan 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nanosoldier runtests(["GPUArrays"], subdir="lib/GPUArraysCore")

@nanosoldier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update on PkgEvalJob 26c5191: Accepted

@nanosoldier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update on PkgEvalJob 26c5191: Running

@nanosoldier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your job failed: could not register new version (Version 0.1.2 already exists).

Please sign in to comment.