@@ -549,6 +549,7 @@ jobs:
549
549
deps : testing_minimal${{matrix.backend=='ptx'&&',cuda'||matrix.backend=='triton'&&',triton'||''}}
550
550
opencl : ${{ matrix.backend == 'gpu' && 'true' }}
551
551
amd : ${{ matrix.backend == 'amd' && 'true' }}
552
+ llvm : ${{ (matrix.backend == 'amd' || matrix.backend == 'llvm') && 'true' }}
552
553
cuda : ${{ (matrix.backend == 'ptx' || matrix.backend == 'triton' || matrix.backend == 'nv') && 'true' }}
553
554
- name : Set env
554
555
run : printf "${{ matrix.backend == 'llvm' && 'LLVM=1' || matrix.backend == 'cpu' && 'CPU=1' || matrix.backend == 'gpu' && 'GPU=1' || matrix.backend == 'PTX' && 'FORWARD_ONLY=1\nJIT=1\nOPT=2\nCUDA=1\nPTX=1\nMOCKGPU=1' || matrix.backend == 'triton' && 'FORWARD_ONLY=1\nJIT=1\nOPT=2\nNV=1\nMOCKGPU=1\nTRITON=1\nTRITON_PTXAS_PATH=/usr/bin/ptxas' || matrix.backend == 'amd' && 'AMD=1\nMOCKGPU=1\nFORWARD_ONLY=1' || matrix.backend == 'nv' && 'NV=1\nMOCKGPU=1\nFORWARD_ONLY=1' }}" >> $GITHUB_ENV
@@ -565,6 +566,9 @@ jobs:
565
566
- name : Run pytest (amd)
566
567
if : matrix.backend=='amd'
567
568
run : python -m pytest -n=auto test/test_ops.py test/test_dtype.py test/test_dtype_alu.py test/test_linearizer.py test/test_randomness.py test/imported/test_indexing.py test/test_hcq.py test/external/external_test_am.py --durations=20
569
+ - name : Run pytest (amd with llvm backend)
570
+ if : matrix.backend=='amd'
571
+ run : python -m pytest -n=auto test/test_amd_llvm.py --durations=20
568
572
- name : Run TRANSCENDENTAL math
569
573
run : TRANSCENDENTAL=2 python -m pytest -n=auto test/test_ops.py::TestOps::test_sin test/test_ops.py::TestOps::test_cos test/test_ops.py::TestOps::test_tan test/test_ops.py::TestOps::test_exp test/test_ops.py::TestOps::test_log --durations=20
570
574
- name : Run process replay tests
@@ -588,6 +592,7 @@ jobs:
588
592
python-version : ' 3.11'
589
593
amd : ' true'
590
594
cuda : ' true'
595
+ llvm : ' true'
591
596
- name : Run real world test
592
597
run : JIT=2 METAL=1 python -m pytest -n=auto test/models/test_real_world.py --durations=20
593
598
- name : Test models (Metal)
@@ -615,6 +620,12 @@ jobs:
615
620
FORWARD_ONLY : 1
616
621
run : |
617
622
python3 -m pytest -n=auto test/test_hcq.py test/test_tiny.py --durations=20
623
+ - name : Run pytest (amd with llvm backend)
624
+ env :
625
+ MOCKGPU : 1
626
+ AMD : 1
627
+ run : |
628
+ python -m pytest -n=auto test/test_amd_llvm.py --durations=20
618
629
- name : Run pytest (ptx)
619
630
env :
620
631
MOCKGPU : 1
0 commit comments