Skip to content

Commit 837a1fe

Browse files
committed
Add multithread support to custom broadcast
1 parent 9a8b90b commit 837a1fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/embedded/cust_broadcast.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ end
260260

261261
# Performance may vary depending on whether `@inbounds` is placed outside the
262262
# for loop or not. (cf. https://github.com/JuliaLang/julia/issues/38086)
263-
@inbounds @simd for I in eachindex(dest)
263+
@inbounds @threads for I in eachindex(dest)
264264
dest[I] = bc′[I]
265265
end
266266
return dest

0 commit comments

Comments
 (0)