Skip to content

Commit a7deabc

Browse files
GiggleLiumaleadt
authored andcommitted
Update construction.jl
1 parent 35074ea commit a7deabc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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 ? length(A) : (1,))
22+
kernel(A, x; ndrange = length(A))
2323
A
2424
end
2525

0 commit comments

Comments
 (0)