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"
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
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
0 commit comments