Skip to content

Commit ca14e92

Browse files
committed
UnicodePlots bump compat; test refact.
1 parent c2fbadb commit ca14e92

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

Project.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,16 @@ ThreadPinning = "811555cd-349b-4f26-b7bc-1f208b848042"
2121
UnicodePlots = "b8865327-cd53-5732-bb35-84acbb429228"
2222

2323
[compat]
24-
CUDA = "3.8.4"
24+
CUDA = "3.8.4, 3.12"
2525
CairoMakie = "0.7"
2626
CpuId = "0.3"
2727
Glob = "1.3"
2828
HDF5 = "0.16"
2929
Reexport = "1.2"
3030
Requires = "1.3"
3131
ThreadPinning = "0.3, 0.4, 0.5, 0.6"
32-
UnicodePlots = "2.8"
32+
UnicodePlots = "2.8, 3"
33+
TestItemRunner = "0.2"
3334
julia = "1.6"
3435

3536
[extras]

test/peakflops_tests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
@testset "peakflops_gpu (CUDA cores)" begin
1+
@testitem "peakflops_gpu (CUDA cores)" begin
22
@test typeof(peakflops_gpu(; verbose=false, tensorcores=false)) == Float64
33
@test typeof(peakflops_gpu(; dtype=Float32, verbose=false, tensorcores=false)) == Float64
44
@test typeof(peakflops_gpu(; dtype=Float64, verbose=false, tensorcores=false)) == Float64
55
end
66

7-
@testset "peakflops_gpu (Tensor cores)" begin
7+
@testitem "peakflops_gpu (Tensor cores)" begin
88
@test typeof(peakflops_gpu(; verbose=false, tensorcores=true)) == Float64
99
@test typeof(peakflops_gpu(; dtype=Float16, verbose=false, tensorcores=true)) == Float64
1010
end
1111

12-
@testset "peakflops_gpu_matmul / scaling" begin
12+
@testitem "peakflops_gpu_matmul / scaling" begin
1313
@test typeof(peakflops_gpu_matmul(; verbose=false)) == Float64
1414
@test typeof(peakflops_gpu_matmul(; size=1024, dtype=Float64, verbose=false)) == Float64
1515
@test typeof(peakflops_gpu_matmul(; nmatmuls=2, nbench=2, verbose=false)) == Float64

test/stresstest_tests.jl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -74,16 +74,16 @@ end
7474
@test isnothing(plot_monitoring_results(r))
7575
@test isnothing(plot_monitoring_results(r, (:compute, :mem)))
7676
end
77+
end
7778

78-
@testset "savefig" begin
79-
using CairoMakie
80-
r = load_monitoring_results(joinpath(@__DIR__, "test.h5"))
81-
@test isnothing(savefig_monitoring_results(r))
82-
@test isnothing(
83-
savefig_monitoring_results(r, (:compute, :mem))
84-
)
85-
@test isnothing(savefig_monitoring_results(r; ext=:png))
86-
@test isnothing(savefig_monitoring_results(r; ext=:pdf))
87-
rm.(filter(endswith(".pdf"), readdir())) # cleanup
88-
end
79+
@testitem "Stresstest: monitoring results (CairoMakie)" begin
80+
using CairoMakie
81+
r = load_monitoring_results(joinpath(@__DIR__, "test.h5"))
82+
@test isnothing(savefig_monitoring_results(r))
83+
@test isnothing(
84+
savefig_monitoring_results(r, (:compute, :mem))
85+
)
86+
@test isnothing(savefig_monitoring_results(r; ext=:png))
87+
@test isnothing(savefig_monitoring_results(r; ext=:pdf))
88+
rm.(filter(endswith(".pdf"), readdir())) # cleanup
8989
end

0 commit comments

Comments
 (0)