Skip to content

Commit d5f6cd6

Browse files
authored
[AMD] Enable CI for GFX950 (#7189)
1 parent dc5b0c6 commit d5f6cd6

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

.github/workflows/integration-tests-amd.yml

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
strategy:
1515
matrix:
1616
runner: ${{ fromJson(inputs.matrix) }}
17+
include:
18+
- image: rocm/pytorch:rocm6.2.2_ubuntu22.04_py3.10_pytorch_2.5.1_asan
19+
- image: rocm/7.0-preview:rocm7.0_preview_ubuntu22.04_llama2_70b_training_mlperf_mi35X_prealpha
20+
runner: ["amd-gfx950"]
1721
env:
1822
RUNNER_TYPE: ${{ matrix.runner[1] }}
1923
TRITON_BUILD_WITH_CCACHE: "true"
@@ -24,7 +28,7 @@ jobs:
2428
PYTHON: "python3"
2529
CCACHE_COMPRESS: "true"
2630
container:
27-
image: rocm/pytorch:rocm6.2.2_ubuntu22.04_py3.10_pytorch_2.5.1_asan
31+
image: ${{ matrix.image }}
2832
options: --device=/dev/kfd --device=/dev/dri --security-opt seccomp=unconfined --group-add video --user root
2933
steps:
3034
- name: Checkout
@@ -76,9 +80,14 @@ jobs:
7680
run: |
7781
echo "PATH is '$PATH'"
7882
pip uninstall -y triton pytorch-triton-rocm
79-
ccache --zero-stats
83+
84+
if [ "${{ matrix.runner[0] }}" != "amd-gfx950" ]; then
85+
ccache --zero-stats
86+
fi
87+
8088
make dev-install
8189
- name: CCache Stats
90+
if: ${{ matrix.runner[0] != 'amd-gfx950' }}
8291
run: ccache --print-stats
8392
- name: Run lit tests
8493
run: make test-lit
@@ -101,7 +110,12 @@ jobs:
101110
pytest --capture=tee-sys -rfs -vvv instrumentation/test_gpuhello.py
102111
103112
# Run test_line_info.py separately with TRITON_DISABLE_LINE_INFO=0
104-
TRITON_DISABLE_LINE_INFO=0 python3 -m pytest -s -n 8 language/test_line_info.py
113+
if [ "${{ matrix.runner[0] }}" = "amd-gfx950" ]; then
114+
TRITON_DISABLE_LINE_INFO=0 python3 -m pytest -s -n 8 language/test_line_info.py -k "not test_line_info_ir_source"
115+
else
116+
TRITON_DISABLE_LINE_INFO=0 python3 -m pytest -s -n 8 language/test_line_info.py
117+
fi
118+
105119
- name: Run asan tests on AMD
106120
if: false
107121
run: |
@@ -121,8 +135,12 @@ jobs:
121135
cd python/test/regression
122136
python3 -m pytest -s -n 8 ./test_cast_matmul.py
123137
- name: Run Proton tests
124-
if: ${{ matrix.runner[0] != 'nvidia-gb200' }}
125-
run: make test-proton
138+
run: |
139+
if [ "${{ matrix.runner[0] }}" = "amd-gfx950" ]; then
140+
python3 -m pytest -s -n 8 third_party/proton/test -k "not test_instrument_exec"
141+
else
142+
make test-proton
143+
fi
126144
- name: Run C++ unittests
127145
run: make test-cpp
128146
- name: Inspect cache directories

.github/workflows/runner-preparation.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jobs:
9696
run: |
9797
if [ x"${{ github.repository }}" == x"triton-lang/triton" ]; then
9898
echo '::set-output name=matrix-NVIDIA::[["nvidia-a100"], ["nvidia-h100"], ["nvidia-gb200"]]'
99-
echo '::set-output name=matrix-AMD::[["self-hosted", "gfx90a"], ["amd-gfx942"]]'
99+
echo '::set-output name=matrix-AMD::[["self-hosted", "gfx90a"], ["amd-gfx942"], ["amd-gfx950"]]'
100100
echo '::set-output name=matrix-MACOS::[["macos-latest"]]'
101101
else
102102
echo '::set-output name=matrix-NVIDIA::["ubuntu-latest"]'

0 commit comments

Comments
 (0)