File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -86,14 +86,16 @@ if [[ "$TARGET" == "et" ]]; then
86
86
EXECUTORCH_LIBRARIES=" ${TORCHCHAT_ROOT} /${ET_BUILD_DIR} /install/lib/libexecutorch_no_prim_ops.a;${TORCHCHAT_ROOT} /${ET_BUILD_DIR} /install/lib/libextension_threadpool.a;${TORCHCHAT_ROOT} /${ET_BUILD_DIR} /install/lib/libcpuinfo.a;${TORCHCHAT_ROOT} /${ET_BUILD_DIR} /install/lib/libpthreadpool.a"
87
87
install_torchao_executorch_ops
88
88
fi
89
+ elif [[ " $LINK_TORCHAO_OPS " == " ON" ]]; then
90
+ # Install OMP when using AOTI with linked torchao ops
91
+ brew install libomp
89
92
fi
90
93
popd
91
94
92
95
# CMake commands
93
96
if [[ " $TARGET " == " et" ]]; then
94
97
cmake -S . -B ./cmake-out -DCMAKE_PREFIX_PATH=` python3 -c ' import torch;print(torch.utils.cmake_prefix_path)' ` -DLINK_TORCHAO_OPS=" ${LINK_TORCHAO_OPS} " -DET_USE_ADAPTIVE_THREADS=ON -DCMAKE_CXX_FLAGS=" -D_GLIBCXX_USE_CXX11_ABI=1" -G Ninja
95
98
else
96
- brew install libomp
97
99
cmake -S . -B ./cmake-out -DCMAKE_PREFIX_PATH=` python3 -c ' import torch;print(torch.utils.cmake_prefix_path)' ` -DLINK_TORCHAO_OPS=" ${LINK_TORCHAO_OPS} " -DCMAKE_CXX_FLAGS=" -D_GLIBCXX_USE_CXX11_ABI=1" -G Ninja
98
100
fi
99
101
cmake --build ./cmake-out --target " ${TARGET} " _run
You can’t perform that action at this time.
0 commit comments