You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/broadcast.jl
+4-2Lines changed: 4 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -105,8 +105,10 @@ end
105
105
106
106
107
107
functionarg_length(x::AbstractArray)
108
-
if!isbits(x)
109
-
error("Non isbits Arrays in GPU Broadcast not supported (So arrays that don't contain pointers to memory are, e.g. UnitRanges). Try converting it to a gpu array. Found: $(typeof(x))")
108
+
if!Base.datatype_pointerfree(x)
109
+
error("Arrays type contains pointer - this doesn't work on the GPU (So arrays that don't contain pointers to memory, e.g. UnitRanges, would work).
110
+
Try converting it to a gpu array. Found: $(typeof(x))"
0 commit comments