Skip to content

Commit 05a5ffd

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

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

support/defaults.go

+3-2
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+
RayROCmImage = "quay.io/modh/ray:2.35.0-py39-rocm61"
1011
)

support/environment.go

+5
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const (
2727

2828
CodeFlareTestRayVersion = "CODEFLARE_TEST_RAY_VERSION"
2929
CodeFlareTestRayImage = "CODEFLARE_TEST_RAY_IMAGE"
30+
CodeFlareTestRayROCmImage = "CODEFLARE_TEST_RAY_ROCM_IMAGE"
3031
CodeFlareTestPyTorchImage = "CODEFLARE_TEST_PYTORCH_IMAGE"
3132

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

82+
func GetRayROCmImage() string {
83+
return lookupEnvOrDefault(CodeFlareTestRayROCmImage, RayROCmImage)
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)