mirror of
https://github.com/ROCm/jax.git
synced 2025-04-16 11:56:07 +00:00
Reenable a GMRES test on CPU.
It appears to pass once again with jaxlib 0.1.67. Unfortunately it just missed the 0.1.66 release.
This commit is contained in:
parent
0ca259f7c2
commit
73df92bbad
@ -317,13 +317,15 @@ class LaxBackedScipyTests(jtu.JaxTestCase):
|
||||
for dtype in [np.float64, np.complex128]
|
||||
for preconditioner in [None, 'identity', 'exact', 'random']
|
||||
for solve_method in ['incremental', 'batched']))
|
||||
# TODO(b/186133663): test fails on CPU after LLVM change.
|
||||
@jtu.skip_on_devices("cpu")
|
||||
def test_gmres_against_scipy(
|
||||
self, shape, dtype, preconditioner, solve_method):
|
||||
if not config.x64_enabled:
|
||||
raise unittest.SkipTest("requires x64 mode")
|
||||
|
||||
# The LLVM bug that caused this appears to be fixed in jaxlib 0.1.67.
|
||||
if jtu.device_under_test() == "cpu" and jax.lib.version <= (0, 1, 66):
|
||||
raise unittest.SkipTest("test fails on CPU jaxlib <= 0.1.66")
|
||||
|
||||
rng = jtu.rand_default(self.rng())
|
||||
A = rng(shape, dtype)
|
||||
b = rng(shape[:1], dtype)
|
||||
|
Loading…
x
Reference in New Issue
Block a user