Files
Joe McDonnell 8ff71d61e5 IMPALA-14715: Fix CMake AVX2 check
Impala currently has two different checks for AVX2 compiler
support: one in be/src/util and another from Kudu in be/src/kudu/util.
The Kudu one is currently broken for the Impala build, disabling AVX2
support for blocked bloom filters. This seems to be specific to Impala's
toolchain CMake 3.22.2. Other versions of CMake (e.g. 3.22.1 on Ubuntu 22
or 3.31.10) work properly.

This centralizes the AVX2 check and uses the working version from
be/src/util. To prevent future issues, it fails the build if AVX2
support is not detected on x86_64. In order to be easy to backport,
this does not upgrade CMake (but that will happen separately).

Testing:
 - Ran build on my local x86_64 machine and verified the compilation
   flags for Impala's parquet bloom filters, Kudu's block bloom filters,
   and roaring bitmap all reflect AVX2 support.

Change-Id: If34820a1a0d70e54df0859ec6d524b178367db0a
Reviewed-on: http://gerrit.cloudera.org:8080/23931
Reviewed-by: Jason Fehr <jfehr@cloudera.com>
Reviewed-by: Michael Smith <michael.smith@cloudera.com>
Tested-by: Impala Public Jenkins <impala-public-jenkins@cloudera.com>
2026-02-03 01:12:47 +00:00
..
2026-02-03 01:12:47 +00:00