Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit b8a47d3

Browse files
committed
add multithreading to ET runner
1 parent e5a2501 commit b8a47d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torchchat/utils/scripts/build_native.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ git submodule sync
7777
if [[ "$TARGET" == "et" ]]; then
7878
find_cmake_prefix_path
7979
install_pip_dependencies
80-
clone_executorch
80+
# clone_executorch
8181
install_executorch_libs false
8282

8383
if [[ "$LINK_TORCHAO" == "ON" ]]; then
@@ -90,7 +90,7 @@ popd
9090

9191
# CMake commands
9292
if [[ "$TARGET" == "et" ]]; then
93-
cmake -S . -B ./cmake-out -DCMAKE_PREFIX_PATH=`python3 -c 'import torch;print(torch.utils.cmake_prefix_path)'` -DLINK_TORCHAO_CUSTOM_OPS="${LINK_TORCHAO}" -DCMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=1" -G Ninja
93+
cmake -S . -B ./cmake-out -DCMAKE_PREFIX_PATH=`python3 -c 'import torch;print(torch.utils.cmake_prefix_path)'` -DLINK_TORCHAO_CUSTOM_OPS="${LINK_TORCHAO}" -DET_USE_ADAPTIVE_THREADS=ON -DCMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=1" -G Ninja
9494
else
9595
cmake -S . -B ./cmake-out -DCMAKE_PREFIX_PATH=`python3 -c 'import torch;print(torch.utils.cmake_prefix_path)'` -DLINK_TORCHAO_CUSTOM_OPS="${LINK_TORCHAO}" -DCMAKE_CXX_FLAGS="-D_GLIBCXX_USE_CXX11_ABI=0" -G Ninja
9696
fi

0 commit comments

Comments
 (0)