Skip to content

Commit efa865d

Browse files
Limit test
1 parent d4400d2 commit efa865d

File tree

2 files changed

+1
-81
lines changed

2 files changed

+1
-81
lines changed

.github/workflows/build-test-reusable.yml

Lines changed: 0 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -278,90 +278,11 @@ jobs:
278278
run: |
279279
echo "TRITON_TEST_CMD=${{ needs.build.outputs.test-triton-command }}" | tee -a $GITHUB_ENV
280280
281-
- name: Run Proton tests
282-
if: matrix.suite == 'rest' && inputs.driver_version == 'rolling' && inputs.device == 'max1100'
283-
run: |
284-
cd third_party/proton/test
285-
pytest test_api.py test_lib.py test_profile.py test_viewer.py test_record.py -s -v
286-
cd ..
287-
288-
- name: Run minicore tests
289-
if: matrix.suite == 'minicore'
290-
run: |
291-
${{ env.TRITON_TEST_CMD }} --minicore
292-
293-
- name: Run mxfp tests
294-
if: matrix.suite == 'mxfp'
295-
run: |
296-
${{ env.TRITON_TEST_CMD }} --mxfp
297-
298281
- name: Run scaled_dot tests
299282
if: matrix.suite == 'scaled_dot'
300283
run: |
301284
${{ env.TRITON_TEST_CMD }} --scaled-dot
302285
303-
- name: Run interpreter tests
304-
if: matrix.suite == 'rest'
305-
run: |
306-
${{ env.TRITON_TEST_CMD }} --interpreter
307-
308-
# FIXME: make sure new tutorials are added to one of the groups (mxfp, scaled_dot, rest)
309-
310-
- name: Select tutorials to run (mxfp)
311-
if: matrix.suite == 'mxfp'
312-
run: |
313-
cat <<EOF | tee tutorials.txt
314-
09-persistent-matmul
315-
EOF
316-
317-
- name: Select tutorials to run (scaled_dot)
318-
if: matrix.suite == 'scaled_dot'
319-
run: |
320-
cat <<EOF | tee tutorials.txt
321-
06-fused-attention
322-
EOF
323-
324-
- name: Select tutorials to run (rest)
325-
if: matrix.suite == 'rest'
326-
run: |
327-
cat <<EOF | tee tutorials.txt
328-
01-vector-add
329-
02-fused-softmax
330-
03-matrix-multiplication
331-
04-low-memory-dropout
332-
05-layer-norm
333-
07-extern-functions
334-
08-grouped-gemm
335-
10-experimental-block-pointer
336-
10i-experimental-block-pointer
337-
EOF
338-
339-
- name: Run Tutorials
340-
if: matrix.suite == 'mxfp' || matrix.suite == 'scaled_dot' || matrix.suite == 'rest'
341-
run: |
342-
${{ env.TRITON_TEST_CMD }} --select-from-file tutorials.txt --tutorial
343-
344-
- name: Get transformers version
345-
if: matrix.suite == 'rest'
346-
run: |
347-
cd pytorch
348-
TRANSFORMERS_VERSION="$(<.ci/docker/ci_commit_pins/huggingface.txt)"
349-
echo "TRANSFORMERS_VERSION=$TRANSFORMERS_VERSION" | tee -a $GITHUB_ENV
350-
351-
- name: Install transformers
352-
if: matrix.suite == 'rest'
353-
uses: ./.github/actions/install-dependency
354-
with:
355-
package: transformers
356-
repository: huggingface/transformers
357-
ref: ${{ env.TRANSFORMERS_VERSION }}
358-
try-tag-prefix: v
359-
360-
- name: Run E2E test
361-
if: matrix.suite == 'rest'
362-
run: |
363-
timeout -s KILL 4900 ${{ env.TRITON_TEST_CMD }} --inductor || ${{ inputs.ignore_errors }}
364-
365286
- name: Save pip cache
366287
if: ${{ steps.pip-cache.outputs.status == 'miss' }}
367288
uses: ./.github/actions/save

scripts/test-triton.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,8 +326,7 @@ run_scaled_dot_tests() {
326326
cd $TRITON_PROJ/python/test/unit
327327

328328
TRITON_DISABLE_LINE_INFO=1 TRITON_TEST_SUITE=scaled_dot \
329-
run_pytest_command -vvv -n ${PYTEST_MAX_PROCESSES:-8} --device xpu language/ --ignore=language/test_line_info.py --ignore=language/test_subprocess.py --ignore=language/test_warp_specialization.py --ignore=language/test_frontend.py\
330-
-k "test_scaled_dot"
329+
run_pytest_command -vvv -n ${PYTEST_MAX_PROCESSES:-8} --device xpu language/test_core.py -k "test_scaled_dot"
331330
}
332331

333332
run_core_tests() {

0 commit comments

Comments
 (0)