This repository was archived by the owner on Sep 10, 2025. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
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
8686    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" 
8787    install_torchao_executorch_ops
8888  fi 
89+ elif  [[ " $LINK_TORCHAO_OPS " ==  " ON" ;  then 
90+   #  Install OMP when using AOTI with linked torchao ops
91+   brew install libomp
8992fi 
9093popd 
9194
9295#  CMake commands
9396if  [[ " $TARGET " ==  " et" ;  then 
9497    cmake -S .  -B ./cmake-out -DCMAKE_PREFIX_PATH=` python3 -c ' import torch;print(torch.utils.cmake_prefix_path)' ` " ${LINK_TORCHAO_OPS} " " -D_GLIBCXX_USE_CXX11_ABI=1" 
9598else 
96-     brew install libomp
9799    cmake -S .  -B ./cmake-out -DCMAKE_PREFIX_PATH=` python3 -c ' import torch;print(torch.utils.cmake_prefix_path)' ` " ${LINK_TORCHAO_OPS} " " -D_GLIBCXX_USE_CXX11_ABI=1" 
98100fi 
99101cmake --build ./cmake-out --target " ${TARGET} " 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments