You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by pa...@apache.org on 2024/07/02 10:23:33 UTC
(doris) branch master updated: [env](compile) compile failed caused by (#37068)
This is an automated email from the ASF dual-hosted git repository.
panxiaolei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 2469f1fbd59 [env](compile) compile failed caused by <immintrin.h> (#37068)
2469f1fbd59 is described below
commit 2469f1fbd59c9da5fb0c17827e4458874e60385c
Author: Mryange <59...@users.noreply.github.com>
AuthorDate: Tue Jul 2 18:23:24 2024 +0800
[env](compile) compile failed caused by <immintrin.h> (#37068)
compile failed caused by <immintrin.h>
---
be/src/util/simd/vstring_function.h | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/be/src/util/simd/vstring_function.h b/be/src/util/simd/vstring_function.h
index 4fff59a01df..579da50d2df 100644
--- a/be/src/util/simd/vstring_function.h
+++ b/be/src/util/simd/vstring_function.h
@@ -17,7 +17,11 @@
#pragma once
+#ifdef __AVX2__
#include <immintrin.h>
+
+#include "gutil/macros.h"
+#endif
#include <unistd.h>
#include <array>
@@ -112,7 +116,7 @@ public:
if constexpr (trim_single) {
const auto ch = remove_str.data[0];
-#if defined(__AVX2__) || defined(__aarch64__)
+#if defined(__AVX2__)
constexpr auto AVX2_BYTES = sizeof(__m256i);
const auto size = end - begin;
const auto* const avx2_begin = end - size / AVX2_BYTES * AVX2_BYTES;
@@ -153,7 +157,7 @@ public:
if constexpr (trim_single) {
const auto ch = remove_str.data[0];
-#if defined(__AVX2__) || defined(__aarch64__)
+#if defined(__AVX2__)
constexpr auto AVX2_BYTES = sizeof(__m256i);
const auto size = end - begin;
const auto* const avx2_end = begin + size / AVX2_BYTES * AVX2_BYTES;
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org