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
Expand Up @@ -33,7 +33,7 @@ CEnum = "0.4"
ExprTools = "0.1"
GPUArrays = "9"
GPUCompiler = "0.23"
KernelAbstractions = "0.9.2"
KernelAbstractions = "0.10"
LLD_jll = "14, 15"
LLVM = "6"
LLVM_jll = "14, 15"
Expand Down
4 changes: 4 additions & 0 deletions src/ROCKernels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ function mkcontext(kernel::Kernel{ROCBackend}, I, _ndrange, iterspace, ::Dynamic
metadata = CompilerMetadata{KernelAbstractions.ndrange(kernel), Dynamic}(I, _ndrange, iterspace)
end

@device_override function KernelAbstractions.isongpu()
return true
end

@device_override @inline function __index_Local_Linear(ctx)
return AMDGPU.Device.threadIdx().x
end
Expand Down