Skip to content

Commit 50889dc

Browse files
committed
[rocm7.1_internal_testing] Add triton_kernels wheel generation
1 parent 93fa949 commit 50889dc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/scripts/build_triton_wheel.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,11 @@ def build_triton(
162162
cwd=triton_basedir,
163163
)
164164

165+
triton_kernels_dir = Path(f"{triton_basedir}/python/triton_kernels")
166+
check_call([sys.executable, "-m", "build", "--wheel"], cwd=triton_kernels_dir, env=env)
167+
kernels_whl_path = next(iter((triton_kernels_dir / "dist").glob("*.whl")))
168+
shutil.copy(kernels_whl_path, Path.cwd())
169+
165170
return Path.cwd() / whl_path.name
166171

167172

0 commit comments

Comments
 (0)