From 1908da33af28ee0e735ed581308570a3582b783e Mon Sep 17 00:00:00 2001 From: Yash Katariya Date: Wed, 22 Jun 2022 19:39:18 -0700 Subject: [PATCH] Only initialize GPU backends if they are not already initialized PiperOrigin-RevId: 456664792 --- build/test-requirements.txt | 1 + tests/distributed_test.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/build/test-requirements.txt b/build/test-requirements.txt index 5ca72ab2c..facfd3e3f 100644 --- a/build/test-requirements.txt +++ b/build/test-requirements.txt @@ -6,3 +6,4 @@ pillow>=8.3.1,<9.1.0 pytest-benchmark pytest-xdist wheel +numpy<1.23.0 diff --git a/tests/distributed_test.py b/tests/distributed_test.py index 7c575a1ca..53955b84f 100644 --- a/tests/distributed_test.py +++ b/tests/distributed_test.py @@ -40,6 +40,9 @@ config.parse_flags_with_absl() @unittest.skipIf(not portpicker, "Test requires portpicker") class DistributedTest(jtu.JaxTestCase): + # TODO(phawkins): Enable after https://github.com/google/jax/issues/11222 + # is fixed. + @unittest.SkipTest def testInitializeAndShutdown(self): # Tests the public APIs. Since they use global state, we cannot use # concurrency to simulate multiple tasks.