Skip to content

Commit

Permalink
[mis] fix flaky test of test_cuda_device_count_stateless (vllm-projec…
Browse files Browse the repository at this point in the history
  • Loading branch information
youkaichao authored and jimpang committed Jul 24, 2024
1 parent baa74f1 commit f216f46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/distributed/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ def test_cuda_device_count_stateless():
CUDA_VISIBLE_DEVICES is changed."""

actor = _CUDADeviceCountStatelessTestActor.options(num_gpus=2).remote()
assert ray.get(actor.get_cuda_visible_devices.remote()) == "0,1"
assert sorted(ray.get(
actor.get_cuda_visible_devices.remote()).split(",")) == ["0", "1"]
assert ray.get(actor.get_count.remote()) == 2
ray.get(actor.set_cuda_visible_devices.remote("0"))
assert ray.get(actor.get_count.remote()) == 1
Expand Down

0 comments on commit f216f46

Please sign in to comment.