Skip to content

Commit dd6804b

Browse files
committed
small change so cuda tests pass
1 parent 0800eee commit dd6804b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/host/broadcast.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ function Base.map!(f, dest::AnyGPUArray, xs::AbstractArray...)
122122
j += 1
123123
if j <= common_length
124124

125-
J = CartesianIndices(axes(bc))[(J-1)*nelem + j]
126-
@inbounds dest[J] = bc[J]
125+
J_c = CartesianIndices(axes(bc))[(J-1)*nelem + j]
126+
@inbounds dest[J_c] = bc[J_c]
127127
end
128128
end
129129
end

0 commit comments

Comments
 (0)