Skip to content

Commit 55a943e

Browse files
authored
Speed up fill for high dimensional arrays (#591)
1 parent 113fc78 commit 55a943e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/host/construction.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function Base.fill!(A::AnyGPUArray{T}, x) where T
1919

2020
# ndims check for 0D support
2121
kernel = fill_kernel!(get_backend(A))
22-
kernel(A, x; ndrange = ndims(A) > 0 ? size(A) : (1,))
22+
kernel(A, x; ndrange = length(A))
2323
A
2424
end
2525

0 commit comments

Comments
 (0)