File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -35,9 +35,18 @@ TI_PATH=$(python3 -c "import taichi;print(taichi.__path__[0])" | tail -1)
3535TI_LIB_DIR=" $TI_PATH /_lib/runtime" ./build/taichi_cpp_tests
3636
3737if [ -z " $GPU_TEST " ]; then
38- python3 tests/run_tests.py -vr2 -t4 -a " $TI_WANTED_ARCHS "
38+ if [[ $PLATFORM == * " m1" * ]]; then
39+ # Split per arch to avoid flaky test
40+ python3 tests/run_tests.py -vr2 -t4 -k " not torch" -a cpu
41+ # Run metal and vulkan separately so that they don't use M1 chip simultaneously.
42+ python3 tests/run_tests.py -vr2 -t4 -k " not torch" -a vulkan
43+ python3 tests/run_tests.py -vr2 -t2 -k " not torch" -a metal
44+ python3 tests/run_tests.py -vr2 -t1 -k " torch" -a " $TI_WANTED_ARCHS "
45+ else
46+ python3 tests/run_tests.py -vr2 -t4 -a " $TI_WANTED_ARCHS "
47+ fi
3948else
40- # only split per arch for self_hosted GPU tests
49+ # Split per arch to increase parallelism for linux GPU tests
4150 if [[ $TI_WANTED_ARCHS == * " cuda" * ]]; then
4251 python3 tests/run_tests.py -vr2 -t4 -k " not torch" -a cuda
4352 fi
5059 if [[ $TI_WANTED_ARCHS == * " opengl" * ]]; then
5160 python3 tests/run_tests.py -vr2 -t4 -k " not torch" -a opengl
5261 fi
53- # Run metal and vulkan separately so that they don't use M1 chip simultaneously.
54- if [[ $TI_WANTED_ARCHS == * " metal" * ]]; then
55- python3 tests/run_tests.py -vr2 -t4 -k " not torch" -a metal
56- fi
5762 python3 tests/run_tests.py -vr2 -t1 -k " torch" -a " $TI_WANTED_ARCHS "
5863fi
Original file line number Diff line number Diff line change @@ -466,4 +466,4 @@ jobs:
466466 env :
467467 TI_WANTED_ARCHS : " metal,vulkan,cpu"
468468 PY : ${{ matrix.python }}
469- GPU_TEST : ON
469+ PLATFORM : " m1 "
You can’t perform that action at this time.
0 commit comments