Skip to content

Commit 270fcf4

Browse files
dhonnappa-amdethanwee1
authored andcommitted
[AUTOGENERATED] [release/2.8] Change triton package name depending on rocm version (#2529)
Cherry-pick of #2518 Co-authored-by: Ethan Wee <[email protected]> (cherry picked from commit c03be63)
1 parent db04f53 commit 270fcf4

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
@@ -101,8 +101,12 @@ def build_triton(
101101

102102
triton_repo = "https://github.com/openai/triton"
103103
if device == "rocm":
104-
triton_pkg_name = "pytorch-triton-rocm"
105104
triton_repo = "https://github.com/ROCm/triton"
105+
rocm_version = get_rocm_version() # e.g., "7.0.1"
106+
if tuple(map(int, rocm_version.split("."))) > (7, 0, 0):
107+
triton_pkg_name = "triton"
108+
else:
109+
triton_pkg_name = "pytorch-triton-rocm"
106110
elif device == "xpu":
107111
triton_pkg_name = "pytorch-triton-xpu"
108112
triton_repo = "https://github.com/intel/intel-xpu-backend-for-triton"

0 commit comments

Comments
 (0)