Skip to content
Merged
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
4 changes: 2 additions & 2 deletions lib/KernelInterface/test/interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,7 @@ function interface_testsuite(backend::KI.Backend, AT)
@testset "Local memory and barriers" begin
N = 32
groups = 3
local_flags = (nothing, Val(KI.LOCAL_MEM_FENCE), Val(KI.LOCAL_MEM_FENCE | KI.GLOBAL_MEM_FENCE))
local_flags = Any[nothing, Val(KI.LOCAL_MEM_FENCE), Val(KI.LOCAL_MEM_FENCE | KI.GLOBAL_MEM_FENCE)]
@testset "barrier($(something(flags, Val(:default))))" for flags in local_flags
out = KI.zeros(backend, Int32, N * groups, 4)
KI.@launch backend numgroups = groups workgroupsize = N localmem_kernel(out, Val(N), flags)
Expand All @@ -1315,7 +1315,7 @@ function interface_testsuite(backend::KI.Backend, AT)
@test out[:, 4] == 3 .* expected
end

global_flags = (nothing, Val(KI.GLOBAL_MEM_FENCE), Val(KI.LOCAL_MEM_FENCE | KI.GLOBAL_MEM_FENCE))
global_flags = Any[nothing, Val(KI.GLOBAL_MEM_FENCE), Val(KI.LOCAL_MEM_FENCE | KI.GLOBAL_MEM_FENCE)]
@testset "barrier($(something(flags, Val(:default))))" for flags in global_flags
scratch = KI.zeros(backend, Int, N * groups)
out = KI.zeros(backend, Int, N * groups)
Expand Down
Loading