Skip to content

Commit

Permalink
Use require
Browse files Browse the repository at this point in the history
  • Loading branch information
chriselrod authored Mar 22, 2022
1 parent ba6ad14 commit ed9b3aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CPUSummary.jl
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ use_hwloc(b) = @set_preferences!("hwloc" => b)
try
script = """
$(Base.load_path_setup_code())
using Hwloc; Hwloc.gettopology()
Hwloc = Base.require(Base.PkgId(Base.UUID("0e44f5e4-bd66-52a0-8798-143a42290a1d"), "Hwloc"))
Hwloc.gettopology()
"""
p = run(`$(Base.julia_cmd()) -e $(script)`, wait=false)
wait(p)
Expand Down

0 comments on commit ed9b3aa

Please sign in to comment.