Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHOAIENG-11046 - Create GPU test for AMD #233

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jiripetrlik
Copy link
Contributor

Add test for Ray on AMD GPU.

Description

How Has This Been Tested?

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

Copy link

openshift-ci bot commented Sep 23, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from jiripetrlik. For more information see the Kubernetes Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

}

func TestMnistCustomRayImageGpu(t *testing.T) {
mnistRay(t, 1)
mnistRay(t, 1, true)
Copy link
Contributor

Choose a reason for hiding this comment

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

This test TestMnistCustomRayImageGpu is for custom cuda-ray image which is torch compatible and it refer
quay.io/rhoai/ray:2.35.0-py39-cu121-torch24-sh20 image

Thus, amd bool should be false for this test.

}

func mnistRay(t *testing.T, numGpus int) {
func mnistRay(t *testing.T, numGpus int, amd bool) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It may be better to provide resource annotations and ray image as parameter instead of using conditions in test.
Personally I find it more readable, keeping the test code cleaner, without conditions.

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

Successfully merging this pull request may close these issues.

3 participants