This is an automated email from the ASF dual-hosted git repository.

taiyangli pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-gluten.git


The following commit(s) were added to refs/heads/main by this push:
     new 645a7fea07 fix arm building (#8703)
645a7fea07 is described below

commit 645a7fea078f90fd940b0f6b81ae8fcb20f68fe3
Author: 李扬 <[email protected]>
AuthorDate: Wed Feb 12 10:53:15 2025 +0800

    fix arm building (#8703)
---
 cpp-ch/local-engine/tests/benchmark_spark_floor_function.cpp | 4 ++++
 cpp-ch/local-engine/tests/benchmark_sum.cpp                  | 6 +++++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/cpp-ch/local-engine/tests/benchmark_spark_floor_function.cpp 
b/cpp-ch/local-engine/tests/benchmark_spark_floor_function.cpp
index 6a708a6f8f..95da98d322 100644
--- a/cpp-ch/local-engine/tests/benchmark_spark_floor_function.cpp
+++ b/cpp-ch/local-engine/tests/benchmark_spark_floor_function.cpp
@@ -15,6 +15,8 @@
  * limitations under the License.
  */
 
+#if defined(__x86_64__)
+
 #include <cstddef>
 #if USE_MULTITARGET_CODE
 #include <immintrin.h>
@@ -1275,3 +1277,5 @@ BENCHMARK_TEMPLATE(BM_myFilterToIndicesDefault, UInt64);
 BENCHMARK_TEMPLATE(BM_myFilterToIndicesAVX512, UInt32);
 BENCHMARK_TEMPLATE(BM_myFilterToIndicesAVX512, UInt64);
 */
+
+#endif
diff --git a/cpp-ch/local-engine/tests/benchmark_sum.cpp 
b/cpp-ch/local-engine/tests/benchmark_sum.cpp
index e3eab4c71d..f21ee62fd0 100644
--- a/cpp-ch/local-engine/tests/benchmark_sum.cpp
+++ b/cpp-ch/local-engine/tests/benchmark_sum.cpp
@@ -15,6 +15,9 @@
  * limitations under the License.
  */
 
+
+#if defined(__x86_64__)
+
 #include <immintrin.h>
 #include <Columns/IColumn.h>
 #include <DataTypes/IDataType.h>
@@ -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
 {
@@ -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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to