Skip to content

Commit 3b329d0

Browse files
Update ramalama/compose.py
approach excludes images for other GPU backends like ROCm or custom builds. Please update the check to support a wider range of GPU-enabled images. Signed-off-by: Abhishek Bongale <abhishekbongale@outlook.com> Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 9942085 commit 3b329d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ramalama/compose.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ def _gen_environment(self) -> str:
142142
return env_spec
143143

144144
def _gen_gpu_deployment(self) -> str:
145-
if "cuda" not in self.image:
145+
gpu_keywords = ["cuda", "rocm", "gpu"]
146+
if not any(keyword in self.image.lower() for keyword in gpu_keywords):
146147
return ""
147148

148149
return """\

0 commit comments

Comments
 (0)