Skip to content

Commit

Permalink
Add multithread support to custom broadcast
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzovarese committed Sep 10, 2024
1 parent 9a8b90b commit 837a1fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/embedded/cust_broadcast.jl
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ end

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

0 comments on commit 837a1fe

Please sign in to comment.