Skip to content

Commit db77f9d

Browse files
committed
dynamic
1 parent 47f4ea1 commit db77f9d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/host/reverse.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function _reverse(input::AnyGPUArray{T, N}, output::AnyGPUArray{T, N};
3131

3232
nthreads = 256
3333

34-
kernel(get_backend(input), nthreads)(input, output; ndrange=length(input))
34+
kernel(get_backend(input))(input, output; workgroupsize=nthreads, ndrange=length(input))
3535
end
3636

3737
# in-place version, swapping elements on half the number of threads
@@ -77,7 +77,7 @@ function _reverse!(data::AnyGPUArray{T, N}; dims=1:ndims(data)) where {T, N}
7777

7878
nthreads = 256
7979

80-
kernel(get_backend(data), nthreads)(data; ndrange=length(data))
80+
kernel(get_backend(data))(data; workgroupsize=nthreads, ndrange=length(data))
8181
end
8282

8383

0 commit comments

Comments
 (0)