We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58a5c56 commit 0368421Copy full SHA for 0368421
tests/multiprocess_gpu_test.py
@@ -50,7 +50,7 @@ def test_gpu_distributed_initialize(self):
50
51
port = portpicker.pick_unused_port()
52
# ROCm will fail if HIP_VISIBLE_DEVICES is set to a single non existent device
53
- num_gpus = 4 if not jtu.is_device_rocm() else min(4, len(jax.devices()))
+ num_gpus = 4 if not jtu.is_device_rocm() else min(4, jax.local_device_count())
54
num_gpus_per_task = 1
55
num_tasks = num_gpus // num_gpus_per_task
56
0 commit comments