Skip to content

Commit 6ca5d42

Browse files
committed
fixup! Add test for accumulate issue
1 parent 9ae1637 commit 6ca5d42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -372,15 +372,15 @@ function unittest_testsuite(Backend, backend_str, backend_mod, BackendArrayT; sk
372372
end
373373

374374
# from https://github.com/JuliaGPU/KernelAbstractions.jl/issues/652
375-
@kernel function unaliased_accumulate!(output, input, @Const(n))
375+
@kernel function unaliased_accumulate!(output, input, n)
376376
i, j = @index(Global, NTuple)
377377

378378
for k in j:n
379379
output[i, j] += input[i, k]
380380
end
381381
end
382382

383-
@kernel function unaliased_accumulate_local!(output, input, @Const(n))
383+
@kernel function unaliased_accumulate_local!(output, input, n)
384384
i, j = @index(Global, Cartesian)
385385

386386
# Use local accumulator

0 commit comments

Comments
 (0)