Skip to content

Commit

Permalink
Update Race.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
OsKnoth committed Jul 25, 2024
1 parent 1ae317a commit d0cbc6f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TestKernels/Race.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ function index_fun(arr; backend=get_backend(arr))
fill!(out, 0)
kernel! = my_kernel!(backend)
kernel!(out, arr, ndrange=(size(arr, 1), size(arr, 2)))
KernelAbstractions.synchronize(backend)
@time for i = 1 : 200
kernel!(out, arr, ndrange=(size(arr, 1), size(arr, 2)))
KernelAbstractions.synchronize(backend)
end
return out
end
Expand Down

0 comments on commit d0cbc6f

Please sign in to comment.