diff --git a/Project.toml b/Project.toml index 00e27c59a0..e57c1d3ffc 100644 --- a/Project.toml +++ b/Project.toml @@ -53,7 +53,7 @@ DataFrames = "1" ExprTools = "0.1" GPUArrays = "9" GPUCompiler = "0.24" -KernelAbstractions = "0.9.2" +KernelAbstractions = "0.10" LLVM = "6" NVTX = "0.3.2" Preferences = "1" diff --git a/src/CUDAKernels.jl b/src/CUDAKernels.jl index 75ff0eb303..4ee1049fad 100644 --- a/src/CUDAKernels.jl +++ b/src/CUDAKernels.jl @@ -156,6 +156,10 @@ function mkcontext(kernel::Kernel{CUDABackend}, _ndrange, iterspace) CompilerMetadata{KernelAbstractions.ndrange(kernel), DynamicCheck}(_ndrange, iterspace) end +@device_override function KernelAbstractions.isongpu() + return true +end + @device_override @inline function __index_Local_Linear(ctx) return CUDA.threadIdx().x end