Skip to content

Commit 8cf93e9

Browse files
committed
Remove CUDAnative workaround.
1 parent d6e37de commit 8cf93e9

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/host/broadcast.jl

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,7 @@ end
6262
bc′ = Broadcast.preprocess(dest, bc)
6363
gpu_call(dest, bc′; name="broadcast") do ctx, dest, bc′
6464
let I = CartesianIndex(@cartesianidx(dest))
65-
#@inbounds dest[I] = bc′[I]
66-
@inbounds let
67-
val = bc′[I]
68-
if val !== nothing
69-
# FIXME: CuArrays.jl crashes on assigning Nothing (this happens with
70-
# broadcasts that don't return anything but assign anyway)
71-
dest[I] = val
72-
end
73-
end
65+
@inbounds dest[I] = bc′[I]
7466
end
7567
return
7668
end

0 commit comments

Comments
 (0)