From cfa836ec7827c23c8999381033640bd22d43f14a Mon Sep 17 00:00:00 2001 From: octalene Date: Tue, 13 Sep 2022 18:46:29 -0700 Subject: [PATCH] ARROW-17598: [C++] Skip memory_benchmark if SIMD level is NEON (#14036) Added an extra check if SIMD_LEVEL is "NEON" because arrow/io/memory_benchmark does not provide definitions for those SIMD instructions. Authored-by: Aldrin M Signed-off-by: Yibo Cai --- cpp/src/arrow/io/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpp/src/arrow/io/CMakeLists.txt b/cpp/src/arrow/io/CMakeLists.txt index 33de37c84f354..d8224192ce0fb 100644 --- a/cpp/src/arrow/io/CMakeLists.txt +++ b/cpp/src/arrow/io/CMakeLists.txt @@ -36,7 +36,8 @@ add_arrow_test(memory_test PREFIX "arrow-io") add_arrow_benchmark(file_benchmark PREFIX "arrow-io") -if(NOT (${ARROW_SIMD_LEVEL} STREQUAL "NONE")) +if(NOT (${ARROW_SIMD_LEVEL} STREQUAL "NONE") AND NOT (${ARROW_SIMD_LEVEL} STREQUAL "NEON" + )) # This benchmark either requires SSE4.2 or ARMV8 SIMD to be enabled add_arrow_benchmark(memory_benchmark PREFIX "arrow-io") endif()