Skip to content

Commit 03e5752

Browse files
Minor fix
1 parent 1ed86dc commit 03e5752

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ext/TerminalSystemMonitorCUDAExt/TerminalSystemMonitorCUDAExt.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function _plot_gpu_utilization_rates(gpu_id, dev::CUDA.CuDevice)
1111
nvml_dev = CUDA.NVML.Device(uuid(dev); mig)
1212
x = string(gpu_id)
1313
y = 100 * CUDA.NVML.utilization_rates(nvml_dev).compute
14-
return barplot([x], [y], maximum = 100, width = max(5, 15))
14+
return barplot([x], [y], maximum = 100, width = 15)
1515
end
1616

1717
function TerminalSystemMonitor.plot_gpu_utilization_rates(::Type{CUDADevice})
@@ -56,7 +56,7 @@ function _plot_gpu_memory_utilization(dev::CUDA.CuDevice)
5656
# Adds a space for better styling
5757
name = " $(memorytotal) $(memorytotal_unit)",
5858
maximum = memorytotal,
59-
width = max(5, 15),
59+
width = 15,
6060
)
6161
end
6262

src/TerminalSystemMonitor.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function main(dummyargs...)
164164
f /= foldl(/, map(c -> prod(UnicodePlots.panel.(c)), gpuchunks))
165165
end
166166

167-
if isdefined(Main, :Metal)
167+
if isdefined(Main, :Metal) && Sys.ARCH == :aarch64
168168
metalplts = []
169169
n = max(1, cols ÷ 50)
170170
plts1 = plot_cpu_utilization_rates(MetalDevice)::Vector{Any}

0 commit comments

Comments
 (0)