14
14
test-cpu-ops :
15
15
strategy :
16
16
matrix :
17
- runner : [macos-14]
17
+ runner : [macos-14, linux.arm64.2xlarge ]
18
18
runs-on : ${{matrix.runner}}
19
19
defaults :
20
20
run :
30
30
python-version : " 3.10"
31
31
miniconda-version : " latest"
32
32
activate-environment : venv
33
- - name : Install requirements
33
+ - name : Install requirements mac
34
+ if : runner.os == 'macOS'
34
35
run : |
35
36
conda activate venv
36
37
# Install executorch first because it installs its own version
@@ -39,27 +40,37 @@ jobs:
39
40
pip install torch==2.7.0 --index-url https://download.pytorch.org/whl/cpu --force-reinstall
40
41
pip install -r dev-requirements.txt
41
42
USE_CPP=1 TORCHAO_BUILD_KLEIDIAI=1 pip install .
43
+ - name : Install requirements linux
44
+ if : runner.os == 'Linux'
45
+ run : |
46
+ conda activate venv
47
+ pip install torch==2.7.0 --index-url https://download.pytorch.org/whl/cpu --force-reinstall
48
+ pip install -r dev-requirements.txt
49
+ BUILD_TORCHAO_EXPERIMENTAL=1 TORCHAO_BUILD_CPU_AARCH64=1 TORCHAO_BUILD_KLEIDIAI=1 TORCHAO_ENABLE_ARM_NEON_DOT=1 TORCHAO_PARALLEL_BACKEND=OPENMP pip install .
42
50
- name : Run python tests
43
51
run : |
44
52
conda activate venv
45
53
pytest torchao/experimental/tests/test_int8_dynamic_activation_intx_weight.py
46
54
python torchao/experimental/tests/test_embedding_xbit_quantizer.py
47
55
python torchao/experimental/tests/test_quant_passes.py
48
56
- name : Run kernels/cpu/aarch64/tests
57
+ if : runner.os == 'macOS'
49
58
run : |
50
59
conda activate venv
51
60
pushd torchao/experimental/kernels/cpu/aarch64/tests
52
61
sh build_and_run_tests.sh
53
62
rm -rf /tmp/cmake-out
54
63
popd
55
64
- name : Run torchao/experimental/ops/tests
65
+ if : runner.os == 'macOS'
56
66
run : |
57
67
conda activate venv
58
68
pushd torchao/experimental/ops/tests
59
69
sh build_and_run_tests.sh
60
70
rm -rf /tmp/cmake-out
61
71
popd
62
72
- name : ET ops build
73
+ if : runner.os == 'macOS'
63
74
run : |
64
75
conda activate venv
65
76
pushd torchao/experimental
0 commit comments