Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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.9"
version = "0.10.0"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down
7 changes: 7 additions & 0 deletions src/KernelAbstractions.jl
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,13 @@ macro index(locale, args...)
Expr(:call, GlobalRef(KernelAbstractions, index_function), esc(:__ctx__), map(esc, args)...)
end

"""
isongpu()

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

###
# Internal kernel functions
###
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

isongpu() = false

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