Skip to content

Commit

Permalink
fix arm building (#8703)
Browse files Browse the repository at this point in the history
  • Loading branch information
taiyang-li authored Feb 12, 2025
1 parent 4bb28f2 commit 645a7fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions cpp-ch/local-engine/tests/benchmark_spark_floor_function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

#if defined(__x86_64__)

#include <cstddef>
#if USE_MULTITARGET_CODE
#include <immintrin.h>
Expand Down Expand Up @@ -1275,3 +1277,5 @@ BENCHMARK_TEMPLATE(BM_myFilterToIndicesDefault, UInt64);
BENCHMARK_TEMPLATE(BM_myFilterToIndicesAVX512, UInt32);
BENCHMARK_TEMPLATE(BM_myFilterToIndicesAVX512, UInt64);
*/

#endif
6 changes: 5 additions & 1 deletion cpp-ch/local-engine/tests/benchmark_sum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@
* limitations under the License.
*/


#if defined(__x86_64__)

#include <immintrin.h>
#include <Columns/IColumn.h>
#include <DataTypes/IDataType.h>
Expand Down Expand Up @@ -46,7 +49,6 @@ struct MyAdd<Decimal<DecimalNativeType>>
};

// _Pragma("clang attribute push(__attribute__((target(\"sse,sse2,sse3,ssse3,sse4,popcnt,avx,avx2,bmi2\"))),apply_to=function)")

template <typename T>
struct MySumData
{
Expand Down Expand Up @@ -729,3 +731,5 @@ BM_Subtraction<OldUInt256> 5.41 ns 5.41 ns 133516077
BM_Multiplication<OldUInt256> 2.47 ns 2.47 ns 286377591
BM_Division<OldUInt256> 21.8 ns 21.8 ns 25876643
*/

#endif

0 comments on commit 645a7fe

Please sign in to comment.