Skip to content

Commit 46a48c4

Browse files
committed
error for arrays
1 parent a0319f4 commit 46a48c4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/broadcast.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ function Base.foreach(func, over::GPUArray, Bs...)
104104
end
105105

106106

107+
arg_length(x::Array) = error("No array in GPU Broadcast supported. Try converting it to a gpu array")
107108
arg_length(x::Tuple) = (UInt32(length(x)),)
108109
arg_length(x::GPUArray) = UInt32.(size(x))
109110
arg_length(x) = ()

0 commit comments

Comments
 (0)