Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "KernelAbstractions"
uuid = "63c18a36-062a-441e-b654-da1e3ab1ce7c"
authors = ["Valentin Churavy <[email protected]> and contributors"]
version = "0.9.8"
version = "0.10.0"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down
8 changes: 8 additions & 0 deletions src/KernelAbstractions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -535,6 +535,14 @@ function priority!(::Backend, prio::Symbol)
return nothing
end


"""
ongpu()

Returns if this kernel is currently executing on a GPU.
"""
function ongpu end

include("nditeration.jl")
using .NDIteration
import .NDIteration: get
Expand Down
2 changes: 2 additions & 0 deletions src/cpu.jl
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@ end
end
end

ongpu() = false

###
# CPU implementation of shared memory
###
Expand Down