Skip to content

Commit 342307e

Browse files
don't run out of memory
1 parent 83e88c2 commit 342307e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

benchmarks/metallu.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ end
2121
algs = [AppleAccelerateLUFactorization(), MetalLUFactorization()]
2222
res = [Float32[] for i in 1:length(algs)]
2323

24-
ns = 200:400:20000
24+
ns = 200:600:15000
2525
for i in 1:length(ns)
2626
n = ns[i]
2727
@info "$n × $n"
@@ -32,6 +32,7 @@ for i in 1:length(ns)
3232

3333
for j in 1:length(algs)
3434
bt = @belapsed solve(prob, $(algs[j])).u setup=(prob = LinearProblem(copy(A), copy(b); u0 = copy(u0), alias_A=true, alias_b=true))
35+
GC.gc()
3536
push!(res[j], luflop(n) / bt / 1e9)
3637
end
3738
end

0 commit comments

Comments
 (0)