Skip to content

Commit

Permalink
ARROW-17598: [C++] Skip memory_benchmark if SIMD level is NEON (apach…
Browse files Browse the repository at this point in the history
…e#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 <[email protected]>
Signed-off-by: Yibo Cai <[email protected]>
  • Loading branch information
drin authored and fatemehp committed Oct 17, 2022
1 parent 3a35936 commit cfa836e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cpp/src/arrow/io/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit cfa836e

Please sign in to comment.