Browse Source

re-enable the sgesdd benchmark

tags/v0.3.28^2
Martin Kroeker GitHub 1 year ago
parent
commit
4460d3ee7f
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 8 deletions
  1. +4
    -8
      benchmark/pybench/benchmarks/bench_blas.py

+ 4
- 8
benchmark/pybench/benchmarks/bench_blas.py View File

@@ -234,14 +234,10 @@ def test_gesdd(benchmark, mn, variant):
gesdd = ow.get_func('gesdd', variant) gesdd = ow.get_func('gesdd', variant)
u, s, vt, info = benchmark(run_gesdd, a, lwork, gesdd) u, s, vt, info = benchmark(run_gesdd, a, lwork, gesdd)


if variant != 's':
# On entry to SLASCL parameter number 4 had an illegal value
# under codspeed (cannot repro locally or on CI w/o codspeed)
# https://github.com/OpenMathLib/OpenBLAS/issues/4776
assert info == 0

atol = {'s': 1e-5, 'd': 1e-13}
np.testing.assert_allclose(u @ np.diag(s) @ vt, a, atol=atol[variant])
assert info == 0

atol = {'s': 1e-5, 'd': 1e-13}
np.testing.assert_allclose(u @ np.diag(s) @ vt, a, atol=atol[variant])




# linalg.eigh # linalg.eigh


Loading…
Cancel
Save