Skip to content

Commit

Permalink
make extension not load twice on workers (#49441)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored Apr 22, 2023
1 parent 9b73cf1 commit bdc619f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Distributed.jl
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ function _require_callback(mod::Base.PkgId)
# broadcast top-level (e.g. from Main) import/using from node 1 (only)
@sync for p in procs()
p == 1 && continue
# Extensions are already loaded on workers by their triggers being loaded
# so no need to fire the callback upon extension being loaded on master.
Base.loading_extension && continue
@async_unwrap remotecall_wait(p) do
Base.require(mod)
nothing
Expand Down

0 comments on commit bdc619f

Please sign in to comment.