ensure we are running triton backend

This commit is contained in:
Szymon Ożóg
2023-08-22 13:30:54 +02:00
parent b46e1aa0ba
commit ee7fd5e482
+3
View File
@@ -262,6 +262,9 @@ jobs:
run: pip install -e '.[testing${{matrix.backend=='llvm'&&',llvm'||matrix.backend=='cuda'&&',cuda'||matrix.backend=='ptx'&&',cuda'||matrix.backend=='triton'&&',triton'||''}}]' --extra-index-url https://download.pytorch.org/whl/cpu
- name: Check Device.DEFAULT
run: python -c "from tinygrad.lazy import Device; assert Device.DEFAULT in ['LLVM','CLANG','CUDA','GPU', 'TRITON'], Device.DEFAULT"
- name: Check Device.DEFAULT(triton)
if: matrix.backend=='triton'
run: python -c "from tinygrad.lazy import Device; assert Device.DEFAULT in ['TRITON'], Device.DEFAULT"
- name: Run pytest (not cuda)
if: matrix.backend!='cuda' && matrix.backend!='ptx' && matrix.backend!='triton'
run: python -m pytest -n=auto test/ -k '${{matrix.backend=='llvm'&&'not (test_nn.py and test_conv_transpose2d)'||'test'}}' -m 'not exclude_${{matrix.backend}}'