Skip to content

Commit 8e9288f

Browse files
committed
Fix x axis units in agentic cuda example
1 parent 5ae3d4c commit 8e9288f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/agentic/generate-cuda-linear-solver/benchmark.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ for sparsity in sparsity_levels
5757
CUDA.synchronize()
5858
end seconds = 5 samples = 10
5959

60-
time_ms = median(bench.times) / 1e6 # Convert to ms
60+
time_ms = median(bench.times) / 1e9 # Convert to s
6161

6262
# Compute error
6363
bd_err = CuArray(copy(b))
@@ -78,7 +78,7 @@ p = plot(
7878
size=(800, 800),
7979
#legend=:topright,
8080
legend=:bottomright,
81-
xlabel="Time (ms)",
81+
xlabel="Time (s)",
8282
ylabel="Relative residual: ||Ax - b||₂ / ||b||₂",
8383
# xscale=:log10,
8484
yscale=:log10,
-2.24 KB
Binary file not shown.

0 commit comments

Comments
 (0)