From 47c4ecbc355ec70daaa963d49cf4b4503089f954 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Tue, 19 Nov 2024 23:13:41 -0500 Subject: [PATCH 1/3] Fix InterpreterIP reference --- src/parcel_snoop_inference.jl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/parcel_snoop_inference.jl b/src/parcel_snoop_inference.jl index 6862ef4d..e6360acf 100644 --- a/src/parcel_snoop_inference.jl +++ b/src/parcel_snoop_inference.jl @@ -31,7 +31,12 @@ isROOT(node::InferenceTimingNode) = isROOT(node.mi_timing) getroot(node::InferenceTimingNode) = isdefined(node.parent, :parent) ? getroot(node.parent) : node # Record instruction pointers we've already looked up (performance optimization) -const lookups = Dict{Union{UInt, Core.Compiler.InterpreterIP}, Vector{StackTraces.StackFrame}}() +const lookups = if isdefined(Core.Compiler, :InterpreterIP) + Dict{Union{UInt, Core.Compiler.InterpreterIP}, Vector{StackTraces.StackFrame}}() +else + # Julia 1.12+ + Dict{Union{UInt, Base.InterpreterIP}, Vector{StackTraces.StackFrame}}() +end lookups_key(ip) = ip lookups_key(ip::Ptr{Nothing}) = UInt(ip) From 8aace076292995d2759172cf55060f3a2a48af57 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Tue, 19 Nov 2024 23:20:58 -0500 Subject: [PATCH 2/3] fix CI arch on macos --- .github/workflows/ci.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0af3edf7..a70ad683 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,14 +27,11 @@ jobs: - ubuntu-latest - macOS-latest - windows-latest - arch: - - x64 steps: - uses: actions/checkout@v4 - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} - arch: ${{ matrix.arch }} show-versioninfo: ${{ matrix.version == 'nightly' }} - uses: actions/cache@v4 env: From 6a5baeafebfc9bcc8a8691907fd5e974ab53c404 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Tue, 19 Nov 2024 23:21:07 -0500 Subject: [PATCH 3/3] test nightly --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a70ad683..68fee49a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,6 +23,7 @@ jobs: - '1.10' - '1' - 'pre' + - 'nightly' os: - ubuntu-latest - macOS-latest