Skip to contentSkip to conversation

Only enable arm64 CRC32 acceleration if the required header files are there

PATCH In review Theodore Ts'o 2 participants 2 messages Mar 12, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Only enable arm64 CRC32 acceleration if the required header files are there

If the necessary header files are missing, then fio will bomb out when building on arm64. So disable the hardware acceleration option in that case, since it's only performance improvement and not a functional regression to turn it off.

---
 configure | 4 ++++
 1 file changed, 4 insertions(+)
configure +4 -0
index d0c2173f..fa6f8acb 100755
@@ -1807,6 +1807,10 @@ echo "bool                          $have_bool"
 march_armv8_a_crc_crypto="no"
 if test "$cpu" = "arm64" ; then
   cat > $TMPC <<EOF
+#include <sys/auxv.h>
+#include <arm_acle.h>
+#include <arm_neon.h>
+
 int main(void)
 {
   return 0;
Signature · 1 line
2.11.0.rc0.7.gbe5a750
#1 lore raw
Quoted 4 lines · Theodore Ts'o

If the necessary header files are missing, then fio will bomb out when building on arm64. So disable the hardware acceleration option in that case, since it's only performance improvement and not a functional regression to turn it off.

Thanks Ted, applied.

Signature · 1 line
Jens Axboe