Skip to content

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/scripts/build_triton_wheel.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,12 @@ def build_triton(
122122
triton_pythondir = triton_basedir / "python"
123123
triton_repo = "https://github.com/openai/triton"
124124
if device == "rocm":
125-
triton_pkg_name = "pytorch-triton-rocm"
126125
triton_repo = "https://github.com/ROCm/triton"
126+
rocm_version = get_rocm_version() # e.g., "7.0.1"
127+
if tuple(map(int, rocm_version.split("."))) > (7, 0, 0):
128+
triton_pkg_name = "triton"
129+
else:
130+
triton_pkg_name = "pytorch-triton-rocm"
127131
elif device == "xpu":
128132
triton_pkg_name = "pytorch-triton-xpu"
129133
triton_repo = "https://github.com/intel/intel-xpu-backend-for-triton"

0 commit comments

Comments
 (0)