Compare commits

...

6 Commits

3 changed files with 14 additions and 6 deletions

View File

@ -1 +1 @@
bfeb066872bc1e8b2d2bc0a3b295b99dd77206e7
0add68262ab0a2e33b84524346cb27cbb2787356

View File

@ -136,7 +136,7 @@ def main() -> None:
parser = ArgumentParser("Build Triton binaries")
parser.add_argument("--release", action="store_true")
parser.add_argument(
"--device", type=str, default="cuda", choices=["cuda", "rocm", "xpu", "aarch64"]
"--device", type=str, default="cuda", choices=["cuda", "rocm-n", "rocm-n-1", "xpu", "aarch64"]
)
parser.add_argument("--py-version", type=str)
parser.add_argument("--commit-hash", type=str)
@ -148,8 +148,13 @@ def main() -> None:
if args.triton_version:
triton_version = args.triton_version
# Normalize device name for rocm-n rocm-n-1 builds
device = args.device
if args.device.startswith("rocm"):
device = "rocm"
build_triton(
device=args.device,
device=device,
commit_hash=(
args.commit_hash if args.commit_hash else read_triton_pin(args.device)
),

View File

@ -51,12 +51,15 @@ jobs:
fail-fast: false
matrix:
py_vers: [ "3.10", "3.11", "3.12", "3.13", "3.13t", "3.14", "3.14t" ]
device: ["cuda", "rocm", "xpu", "aarch64"]
device: ["cuda", "rocm-n", "rocm-n-1", "xpu", "aarch64"]
docker-image: ["pytorch/manylinux2_28-builder:cpu"]
include:
- device: "rocm"
- device: "rocm-n"
rocm_version: "7.1"
runs_on: "${{ needs.get-label-type.outputs.label-type }}linux.4xlarge"
- device: "rocm-n-1"
rocm_version: "7.0"
runs_on: "${{ needs.get-label-type.outputs.label-type }}linux.4xlarge"
- device: "cuda"
rocm_version: ""
runs_on: "${{ needs.get-label-type.outputs.label-type }}linux.4xlarge"
@ -171,7 +174,7 @@ jobs:
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
with:
name: pytorch-triton-wheel-${{ matrix.py_vers }}-${{ matrix.device }}-${{ env.PLATFORM }}
name: pytorch-triton-wheel-${{ matrix.py_vers }}-${{ matrix.device }}${{ matrix.rocm_version != '' && format('-{0}', matrix.rocm_version) || '' }}-${{ env.PLATFORM }}
if-no-files-found: error
path: ${{ runner.temp }}/artifacts/wheelhouse/*