Skip to content

[core][gpu-objects] Fix test_gpu_objects_nccl.py - #53874

Merged
stephanie-wang merged 1 commit into
ray-project:masterfrom
kevin85421:20250616-devbox-2-tmux10-ray1
Jun 17, 2025
Merged

stephanie-wang merged 1 commit into
ray-project:masterfrom
kevin85421:20250616-devbox-2-tmux10-ray1

Conversation

@kevin85421

@kevin85421 kevin85421 commented Jun 17, 2025 •

Copy link
Copy Markdown
Member

Why are these changes needed?

#53871

  • CI error:
    image

Related issue number

Closes #53871

Checks

image

Signed-off-by: Kai-Hsun Chen <[email protected]>
@kevin85421
kevin85421 marked this pull request as ready for review June 17, 2025 05:27
Copilot AI review requested due to automatic review settings June 17, 2025 05:27
@kevin85421 kevin85421 added the go add ONLY when ready to merge, run all tests label Jun 17, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR addresses an issue with the NCCL GPU objects test by modifying resource allocation in the actor decorator and adjusting test parameters.

  • Updated the remote decorator to explicitly set CPU usage to zero.
  • Added parameterization to ensure the test runs with two GPUs.
Comments suppressed due to low confidence (2)

python/ray/tests/test_gpu_objects_nccl.py:8

  • Consider adding a brief comment explaining the rationale for setting 'num_cpus' to 0, to clarify the resource usage for this GPU-specific actor.
@ray.remote(num_gpus=1, num_cpus=0)

python/ray/tests/test_gpu_objects_nccl.py:18

  • Ensure that the CI environment or local setups are configured to support at least 2 GPUs to avoid false negatives in this test.
@pytest.mark.parametrize("ray_start_regular", [{"num_gpus": 2}], indirect=True)

@stephanie-wang stephanie-wang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI test linux://python/ray/tests:test_gpu_objects_nccl is consistently_failing

3 participants