Skip to content

Commit 7410736

Browse files
committed
RHOAIENG-11046 - Add support for AMD GPU image
1 parent 758dad4 commit 7410736

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

support/defaults.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ package support
55
// ***********************
66

77
const (
8-
RayVersion = "2.35.0"
9-
RayImage = "quay.io/modh/ray:2.35.0-py39-cu121"
8+
RayVersion = "2.35.0"
9+
RayImage = "quay.io/modh/ray:2.35.0-py39-cu121"
10+
RayAMDGpuImage = "quay.io/modh/ray:2.35.0-py39-rocm61"
1011
)

support/environment.go

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,10 @@ const (
2525
// The environment variables hereafter can be used to change the components
2626
// used for testing.
2727

28-
CodeFlareTestRayVersion = "CODEFLARE_TEST_RAY_VERSION"
29-
CodeFlareTestRayImage = "CODEFLARE_TEST_RAY_IMAGE"
30-
CodeFlareTestPyTorchImage = "CODEFLARE_TEST_PYTORCH_IMAGE"
28+
CodeFlareTestRayVersion = "CODEFLARE_TEST_RAY_VERSION"
29+
CodeFlareTestRayImage = "CODEFLARE_TEST_RAY_IMAGE"
30+
CodeFlareTestRayAMDGpuImage = "CODEFLARE_TEST_RAY_AMD_GPU_IMAGE"
31+
CodeFlareTestPyTorchImage = "CODEFLARE_TEST_PYTORCH_IMAGE"
3132

3233
// The testing output directory, to write output files into.
3334
CodeFlareTestOutputDir = "CODEFLARE_TEST_OUTPUT_DIR"
@@ -78,6 +79,10 @@ func GetRayImage() string {
7879
return lookupEnvOrDefault(CodeFlareTestRayImage, RayImage)
7980
}
8081

82+
func GetRayAMDGpuImage() string {
83+
return lookupEnvOrDefault(CodeFlareTestRayAMDGpuImage, RayAMDGpuImage)
84+
}
85+
8186
func GetPyTorchImage() string {
8287
return lookupEnvOrDefault(CodeFlareTestPyTorchImage, "pytorch/pytorch:1.11.0-cuda11.3-cudnn8-runtime")
8388
}

0 commit comments

Comments
 (0)