diff --git a/Project.toml b/Project.toml index 0a9491b..0644b59 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "CPUSummary" uuid = "2a0fbf3d-bb9c-48f3-b0a9-814d99fd7ab9" authors = ["chriselrod and contributors"] -version = "0.1.16" +version = "0.1.17" [deps] Hwloc = "0e44f5e4-bd66-52a0-8798-143a42290a1d" diff --git a/src/CPUSummary.jl b/src/CPUSummary.jl index a16e561..30253bf 100644 --- a/src/CPUSummary.jl +++ b/src/CPUSummary.jl @@ -11,7 +11,12 @@ use_hwloc(b) = @set_preferences!("hwloc" => b) @static if USE_HWLOC try - p = run(`$(Base.julia_cmd()) --project=$(Base.active_project()) -e'using Hwloc; Hwloc.gettopology()'`, wait=false) + script = """ + $(Base.load_path_setup_code()) + 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) if p.exitcode == 0 && p.termsignal == 0 include("topology.jl")