File tree Expand file tree Collapse file tree 5 files changed +21
-8
lines changed Expand file tree Collapse file tree 5 files changed +21
-8
lines changed Original file line number Diff line number Diff line change @@ -1154,10 +1154,10 @@ jobs:
1154
1154
./install/install_requirements.sh
1155
1155
pip3 list
1156
1156
python3 -c 'import torch;print(f"torch: {torch.__version__, torch.version.git_version}")'
1157
- - name : Install torchao-ops
1158
- id : install -torchao-ops
1157
+ - name : Clone torchao
1158
+ id : clone -torchao
1159
1159
run : |
1160
- bash torchchat/utils/scripts/build_torchao_ops .sh
1160
+ bash torchchat/utils/scripts/clone_torchao .sh
1161
1161
- name : Install runner
1162
1162
run : |
1163
1163
echo "Installing runner"
@@ -1209,10 +1209,10 @@ jobs:
1209
1209
echo "Installing ExecuTorch"
1210
1210
export TORCHCHAT_ROOT=${PWD}
1211
1211
bash torchchat/utils/scripts/install_et.sh
1212
- - name : Install torchao-ops
1213
- id : install -torchao-ops
1212
+ - name : Clone torchao
1213
+ id : clone -torchao
1214
1214
run : |
1215
- bash torchchat/utils/scripts/build_torchao_ops .sh
1215
+ bash torchchat/utils/scripts/clone_torchao .sh
1216
1216
- name : Install runner
1217
1217
run : |
1218
1218
echo "Installing runner"
@@ -1256,6 +1256,7 @@ jobs:
1256
1256
- name : Install torchao-ops-mps
1257
1257
id : install-torchao-ops-mps
1258
1258
run : |
1259
+ bash torchchat/utils/scripts/clone_torchao.sh
1259
1260
bash torchchat/utils/scripts/build_torchao_ops.sh mps
1260
1261
- name : Run inference
1261
1262
run : |
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ if [[ "$TARGET" == "et" ]]; then
88
88
elif [[ " $LINK_TORCHAO_OPS " == " ON" ]]; then
89
89
# Install OMP when using AOTI with linked torchao ops
90
90
brew install libomp
91
+ install_torchao_aten_ops cpu
91
92
fi
92
93
popd
93
94
Original file line number Diff line number Diff line change @@ -16,6 +16,5 @@ source "$(dirname "${BASH_SOURCE[0]}")/install_utils.sh"
16
16
17
17
pushd ${TORCHCHAT_ROOT}
18
18
find_cmake_prefix_path
19
- clone_torchao
20
19
install_torchao_aten_ops " $device "
21
20
popd
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
3
+ # All rights reserved.
4
+ #
5
+ # This source code is licensed under the BSD-style license found in the
6
+ # LICENSE file in the root directory of this source tree.
7
+
8
+ source " $( dirname " ${BASH_SOURCE[0]} " ) /install_utils.sh"
9
+
10
+ pushd ${TORCHCHAT_ROOT}
11
+ clone_torchao
12
+ popd
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ install_torchao_aten_ops() {
204
204
-DCMAKE_INSTALL_PREFIX=${CMAKE_OUT_DIR} \
205
205
-DTORCHAO_BUILD_CPU_AARCH64=ON \
206
206
-DTORCHAO_PARALLEL_BACKEND=OPENMP \
207
- -DOpenMP_ROOT=" /opt/homebrew /opt/libomp" \
207
+ -DOpenMP_ROOT=" $( brew --prefix ) /opt/libomp" \
208
208
-DCMAKE_BUILD_TYPE=" Release" \
209
209
-S . \
210
210
-B ${CMAKE_OUT_DIR} -G Ninja
You can’t perform that action at this time.
0 commit comments