Zoltan Borok-Nagy has uploaded this change for review. ( 
http://gerrit.cloudera.org:8080/24888


Change subject: IMPALA-15369: Check for the CRC32 extension at startup on ARM64
......................................................................

IMPALA-15369: Check for the CRC32 extension at startup on ARM64

On aarch64, Impala is built with -march=armv8-a+crc, and native code
and codegen use CRC32 instructions for hashing (HashUtil::Hash(),
LlvmCodeGen::GetHashFunction()) without checking for them at runtime.
The CRC32 extension is optional in ARMv8.0, so on such CPUs the daemons
crash with SIGILL once a CRC32 code path runs, instead of failing at
startup with a clear message.

This change extends CpuInfo::EnforceCpuRequirements() to check the
HWCAP_CRC32 bit of the hardware capabilities reported by the kernel
(getauxval(AT_HWCAP)) on aarch64. All daemons already call it from
InitCommonRuntime() and exit with an error message if it fails, like
for the AVX/AVX2 requirement on x86_64.

Testing:
 - Core tests show no new errors on ARM machine

Change-Id: Ic01f8f8009e6e2d8dbfd324d83353b0d4dbf1d4c
Assisted-by: Claude Opus 5 (Claude Code)
---
M be/src/util/cpu-info.cc
1 file changed, 14 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.cloudera.org:29418/Impala-ASF refs/changes/88/24888/1
--
To view, visit http://gerrit.cloudera.org:8080/24888
To unsubscribe, visit http://gerrit.cloudera.org:8080/settings

Gerrit-Project: Impala-ASF
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic01f8f8009e6e2d8dbfd324d83353b0d4dbf1d4c
Gerrit-Change-Number: 24888
Gerrit-PatchSet: 1
Gerrit-Owner: Zoltan Borok-Nagy <[email protected]>

Reply via email to