This repository was archived by the owner on Sep 10, 2025. It is now read-only.
  
  
  
  
    
    
    
      
    
  
  
    
File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ if(executorch_FOUND)
112112  endif ()
113113
114114  if(LINK_TORCHAO_CUSTOM_OPS)
115-     target_link_libraries(et_run PRIVATE " ${TORCHCHAT_ROOT} /torchao-build/cmake-out/ops/linear/linear_a8wxdq_op/liblinear_a8wxdq_aten ${CMAKE_SHARED_LIBRARY_SUFFIX} "  )
115+     target_link_libraries(et_run PRIVATE " ${TORCHCHAT_ROOT} /torchao-build/cmake-out/ops/linear/linear_a8wxdq_op/liblinear_a8wxdq_executorch ${CMAKE_SHARED_LIBRARY_SUFFIX} "  )
116116  endif ()
117117
118118  #  Adding target_link_options_shared_lib as commented out below leads to this:
Original file line number Diff line number Diff line change @@ -195,12 +195,11 @@ install_torchao_custom_aten_ops() {
195195install_torchao_custom_executorch_ops () {
196196  echo  " Building torchao custom ops for ExecuTorch" 
197197  pushd  ${TORCHCHAT_ROOT} /torchao-build/src/ao/torchao/experimental
198-   export  TORCHAO_INCLUDE_DIRS=${TORCHCHAT_ROOT} /torchao-build/src/ao
199198
200199  CMAKE_OUT_DIR=" ${TORCHCHAT_ROOT} /torchao-build/cmake-out" 
201200  cmake -DCMAKE_PREFIX_PATH=${MY_CMAKE_PREFIX_PATH}  \
202-     -DEXECUTORCH_INCLUDE_DIRS=${EXECUTORCH_INCLUDE_DIRS}  \
203-     -DEXECUTORCH_LIBRARIES=${EXECUTORCH_LIBRARIES}  \
201+     -DEXECUTORCH_INCLUDE_DIRS=" ${EXECUTORCH_INCLUDE_DIRS} "   \
202+     -DEXECUTORCH_LIBRARIES=" ${EXECUTORCH_LIBRARIES} "   \
204203    -DTORCHAO_OP_TARGET=" EXECUTORCH"   \
205204    -S .  \
206205    -B ${CMAKE_OUT_DIR}  -G Ninja
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments