cleanup external_test_opt (#4234)

no more OPT=2 or OPT=3, check strict number of kernels, enabled tests that fusion works now
This commit is contained in:
chenyu
2024-04-20 04:00:08 -04:00
committed by GitHub
parent dc4b1af09c
commit f1d9d0a151
2 changed files with 20 additions and 38 deletions

View File

@@ -186,10 +186,8 @@ jobs:
- name: Install Dependencies
run: pip install -e '.[testing,testing_tf]' --extra-index-url https://download.pytorch.org/whl/cpu
- if: ${{ matrix.task == 'optimage' }}
name: Run Optimizer Test (OPT 2 and 3)
run: |
PYTHONPATH="." OPT=2 GPU=1 python -m pytest -n=auto test/external/external_test_opt.py
PYTHONPATH="." OPT=3 GPU=1 python -m pytest -n=auto test/external/external_test_opt.py
name: Run Kernel Count Test
run: PYTHONPATH="." GPU=1 python -m pytest -n=auto test/external/external_test_opt.py
- if: ${{ matrix.task == 'optimage'}}
name: Test WINO=1
run: GPU=1 DEBUG=2 WINO=1 python3 test/test_ops.py TestOps.test_simple_conv2d