Skip to content

Commit fcc63e4

Browse files
committed
ifhbvw
1 parent ee2cfa1 commit fcc63e4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/host/reverse.jl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@ function _reverse(input::AnyGPUArray{T, N}, output::AnyGPUArray{T, N};
3030
## COV_EXCL_STOP
3131

3232
nthreads = 256
33-
nblocks = cld(length(input), nthreads)
3433

35-
kernel(get_backend(input), nblocks)(input, output; ndrange=length(input))
34+
kernel(get_backend(input), nthreads)(input, output; ndrange=length(input))
3635
end
3736

3837
# in-place version, swapping elements on half the number of threads
@@ -77,9 +76,8 @@ function _reverse!(data::AnyGPUArray{T, N}; dims=1:ndims(data)) where {T, N}
7776
# ignoring the threads that cross the mid-point
7877

7978
nthreads = 256
80-
nblocks = cld(prod(reduced_size), nthreads)
8179

82-
kernel(get_backend(data), nblocks)(data; ndrange=length(data))
80+
kernel(get_backend(data), nthreads)(data; ndrange=length(data))
8381
end
8482

8583

0 commit comments

Comments
 (0)