You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kudu.apache.org by al...@apache.org on 2023/01/16 06:17:24 UTC

[kudu] 01/02: Adds ppc64le to architectures which do not support avx2

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

alexey pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kudu.git

commit ffc5ffc2fb1c9358e0e2a5bfcc32d92ac8bca761
Author: harinreddy <hn...@us.ibm.com>
AuthorDate: Sun Sep 18 22:28:03 2022 -0500

    Adds ppc64le to architectures which do not support avx2
    
    __powerpc64__  preprocessor flag is added to the list of architectures
    in the #if statement which skips avx2 based code generation for
    architectures which do not this feature.
    
     Changes to be committed:
            modified:   src/kudu/cfile/bitshuffle_arch_wrapper.cc#
    
    Change-Id: I3477193cb966402099a8ce9a7f98702c3107d1e6
    Reviewed-on: http://gerrit.cloudera.org:8080/19014
    Tested-by: Kudu Jenkins
    Reviewed-by: Alexey Serbin <al...@apache.org>
---
 src/kudu/cfile/bitshuffle_arch_wrapper.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/kudu/cfile/bitshuffle_arch_wrapper.cc b/src/kudu/cfile/bitshuffle_arch_wrapper.cc
index 1889a4cb9..478d79b43 100644
--- a/src/kudu/cfile/bitshuffle_arch_wrapper.cc
+++ b/src/kudu/cfile/bitshuffle_arch_wrapper.cc
@@ -58,7 +58,7 @@ decltype(&bshuf_decompress_lz4) g_bshuf_decompress_lz4;
 // the cost of a 'std::once' call.
 __attribute__((constructor))
 void SelectBitshuffleFunctions() {
-#if !defined(__APPLE__) && !defined(__aarch64__)
+#if !defined(__APPLE__) && !defined(__aarch64__) && !defined(__powerpc64__)
   if (CPU().has_avx2()) {
     g_bshuf_compress_lz4_bound = bshuf_compress_lz4_bound_avx2;
     g_bshuf_compress_lz4 = bshuf_compress_lz4_avx2;