- 
                Notifications
    
You must be signed in to change notification settings  - Fork 710
 
determine fht_avx.c/fht_neon.c based on CMake target processor #8346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
          
     Merged
      
      
    
  
     Merged
                    Changes from 23 commits
      Commits
    
    
            Show all changes
          
          
            35 commits
          
        
        Select commit
          Hold shift + click to select a range
      
      00ce927
              
                Update
              
              
                swolchok 6440d3d
              
                Update
              
              
                swolchok 773ff37
              
                Update
              
              
                swolchok 87513d8
              
                Update
              
              
                swolchok d4aaa36
              
                Update
              
              
                swolchok 15bc325
              
                Update
              
              
                swolchok 6b9b4cc
              
                Update
              
              
                swolchok a0e9eb9
              
                Update
              
              
                swolchok 4878a6b
              
                Update
              
              
                swolchok e9d552e
              
                Update
              
              
                swolchok 8ed9894
              
                Update
              
              
                swolchok 8016e33
              
                Update
              
              
                swolchok a947148
              
                Update
              
              
                swolchok a826c40
              
                Update
              
              
                swolchok 6601683
              
                Update
              
              
                swolchok f7c1205
              
                Update
              
              
                swolchok 4b35d1e
              
                Update
              
              
                swolchok ff128f7
              
                Update
              
              
                swolchok f06ee2f
              
                Update
              
              
                swolchok a1b9a76
              
                Update
              
              
                swolchok 95cfe7d
              
                Update
              
              
                swolchok cb0234b
              
                Update
              
              
                swolchok 0d53925
              
                Update
              
              
                swolchok 9d8e434
              
                Update
              
              
                swolchok 3a2d555
              
                Update
              
              
                swolchok b8f2a5b
              
                Update
              
              
                swolchok f02844b
              
                Update
              
              
                swolchok 1b47bf0
              
                Update
              
              
                swolchok 61f045d
              
                Update
              
              
                swolchok 4eb72d3
              
                Update
              
              
                swolchok 9c7b3d1
              
                Update
              
              
                swolchok 25a26e2
              
                Update
              
              
                swolchok 71ef8af
              
                Update
              
              
                swolchok b52f223
              
                Update
              
              
                swolchok 8df2f1d
              
                Update
              
              
                swolchok File filter
Filter by extension
Conversations
          Failed to load comments.   
        
        
          
      Loading
        
  Jump to
        
          Jump to file
        
      
      
          Failed to load files.   
        
        
          
      Loading
        
  Diff view
Diff view
There are no files selected for viewing
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,30 @@ | ||
| # Copyright (c) Meta Platforms, Inc. and affiliates. | ||
| # All rights reserved. | ||
| # | ||
| # This source code is licensed under the BSD-style license found in the | ||
| # LICENSE file in the root directory of this source tree. | ||
| 
     | 
||
| # @generated by test/utils/generate_gtest_cmakelists.py | ||
| # | ||
| # This file should be formatted with | ||
| # ~~~ | ||
| # cmake-format -i CMakeLists.txt | ||
| # ~~~ | ||
| # It should also be cmake-lint clean. | ||
| # | ||
| 
     | 
||
| cmake_minimum_required(VERSION 3.19) | ||
| 
     | 
||
| set(EXECUTORCH_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../../../../..) | ||
| 
     | 
||
| include(${EXECUTORCH_ROOT}/build/Test.cmake) | ||
| 
     | 
||
| set(_test_srcs | ||
| fast_hadamard_transform_test.cpp fast_hadamard_transform_test_impl.cpp | ||
| op_fast_hadamard_transform_test.cpp | ||
| ) | ||
| 
     | 
||
| et_cxx_test( | ||
| extension_llm_custom_ops_spinquant_test SOURCES ${_test_srcs} EXTRA_LIBS | ||
| custom_ops dumb_fht | ||
| ) | 
        
          
  
    
      
          
            12 changes: 12 additions & 0 deletions
          
          12 
        
  extension/llm/custom_ops/spinquant/third-party/FFHT/CMakeLists.txt
  
  
      
      
   
        
      
      
    
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              | Original file line number | Diff line number | Diff line change | 
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| # Copyright (c) Meta Platforms, Inc. and affiliates. | ||
| # All rights reserved. | ||
| # | ||
| # This source code is licensed under the BSD-style license found in the | ||
| # LICENSE file in the root directory of this source tree. | ||
| 
     | 
||
| # Please this file formatted by running: | ||
| # ~~~ | ||
| # cmake-format -i CMakeLists.txt | ||
| # ~~~ | ||
| 
     | 
||
| add_library(dumb_fht dumb_fht.c) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
              
      
      Oops, something went wrong.
        
    
  
  Add this suggestion to a batch that can be applied as a single commit.
  This suggestion is invalid because no changes were made to the code.
  Suggestions cannot be applied while the pull request is closed.
  Suggestions cannot be applied while viewing a subset of changes.
  Only one suggestion per line can be applied in a batch.
  Add this suggestion to a batch that can be applied as a single commit.
  Applying suggestions on deleted lines is not supported.
  You must change the existing code in this line in order to create a valid suggestion.
  Outdated suggestions cannot be applied.
  This suggestion has been applied or marked resolved.
  Suggestions cannot be applied from pending reviews.
  Suggestions cannot be applied on multi-line comments.
  Suggestions cannot be applied while the pull request is queued to merge.
  Suggestion cannot be applied right now. Please check back later.
  
    
  
    
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My comment is irrelevant since you are removing it, but this second regex seemed wrong?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks right to me. Dot is a regex metacharacter so we need to escape it with a backslash. Backslash is a string metacharacter so we need to escape it with a second backslash. Or is there a different problem I missed entirely?