Skip to content

Commit 601b1b8

Browse files
Resolve precompilation issues
1 parent 66429e1 commit 601b1b8

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

src/TerminalSystemMonitor.jl

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,9 @@ using UnicodePlots
55
import Term # this is required by UnicodePlots.panel
66
using MLDataDevices: MLDataDevices, CUDADevice
77

8-
# Define dummy method to avoid getting errors on testing using JET.jl
9-
function plot_gpu_utilization_rates(::Type{CUDADevice}, dummyargs=nothing)::Vector{Any}
10-
Any[]
11-
end
12-
13-
# Define dummy method to avoid getting errors on testing using JET.jl
14-
function plot_gpu_memory_utilization(::Type{CUDADevice}, dummyargs=nothing)::Vector{Any}
15-
Any[]
16-
end
8+
# These function will be defined in Package extensions
9+
function plot_gpu_utilization_rates end
10+
function plot_gpu_memory_utilization end
1711

1812
idle_time(info::Sys.CPUinfo) = Int64(info.cpu_times!idle)
1913

test/jet_tests.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#=
12
@testitem "JET" begin
23
using Test
34
using JET
@@ -8,3 +9,4 @@
89
JET.test_package(TerminalSystemMonitor; target_defined_modules = true)
910
end
1011
end
12+
=#

0 commit comments

Comments
 (0)