This repository was archived by the owner on Sep 10, 2025. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
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:
11541154          ./install/install_requirements.sh 
11551155          pip3 list 
11561156          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
11591159        run : | 
1160-           bash torchchat/utils/scripts/build_torchao_ops .sh 
1160+           bash torchchat/utils/scripts/clone_torchao .sh 
11611161name : Install runner 
11621162        run : | 
11631163          echo "Installing runner" 
@@ -1209,10 +1209,10 @@ jobs:
12091209          echo "Installing ExecuTorch" 
12101210          export TORCHCHAT_ROOT=${PWD} 
12111211          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
12141214        run : | 
1215-           bash torchchat/utils/scripts/build_torchao_ops .sh 
1215+           bash torchchat/utils/scripts/clone_torchao .sh 
12161216name : Install runner 
12171217        run : | 
12181218          echo "Installing runner" 
@@ -1256,6 +1256,7 @@ jobs:
12561256name : Install torchao-ops-mps 
12571257        id : install-torchao-ops-mps 
12581258        run : | 
1259+           bash torchchat/utils/scripts/clone_torchao.sh 
12591260          bash torchchat/utils/scripts/build_torchao_ops.sh mps 
12601261name : Run inference 
12611262        run : | 
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ if [[ "$TARGET" == "et" ]]; then
8888elif  [[ " $LINK_TORCHAO_OPS " ==  " ON" ;  then 
8989   #  Install OMP when using AOTI with linked torchao ops
9090   brew install libomp
91+    install_torchao_aten_ops cpu
9192fi 
9293popd 
9394
Original file line number Diff line number Diff line change @@ -16,6 +16,5 @@ source "$(dirname "${BASH_SOURCE[0]}")/install_utils.sh"
1616
1717pushd  ${TORCHCHAT_ROOT} 
1818find_cmake_prefix_path
19- clone_torchao
2019install_torchao_aten_ops " $device " 
2120popd 
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]} " ) " 
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() {
204204    -DCMAKE_INSTALL_PREFIX=${CMAKE_OUT_DIR}  \
205205    -DTORCHAO_BUILD_CPU_AARCH64=ON \
206206    -DTORCHAO_PARALLEL_BACKEND=OPENMP \
207-     -DOpenMP_ROOT=" /opt/homebrew /opt/libomp" 
207+     -DOpenMP_ROOT=" $( brew --prefix ) " 
208208    -DCMAKE_BUILD_TYPE=" Release" 
209209    -S .  \
210210    -B ${CMAKE_OUT_DIR}  -G Ninja
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments