You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Aldrin Montana (Jira)" <ji...@apache.org> on 2022/09/01 23:06:00 UTC

[jira] [Commented] (ARROW-17598) [C++] Arrow io memory_benchmark does not compile if SIMD level is NEON

    [ https://issues.apache.org/jira/browse/ARROW-17598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17599184#comment-17599184 ] 

Aldrin Montana commented on ARROW-17598:
----------------------------------------

I think the easiest thing to do would be to change cmake to not add the benchmark if the SIMD level is NEON:

{code:cpp}
diff --git a/cpp/src/arrow/io/CMakeLists.txt b/cpp/src/arrow/io/CMakeLists.txt
index 33de37c84..ddf10078b 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()
{code}

> [C++] Arrow io memory_benchmark does not compile if SIMD level is NEON
> ----------------------------------------------------------------------
>
>                 Key: ARROW-17598
>                 URL: https://issues.apache.org/jira/browse/ARROW-17598
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: C++
>            Reporter: Aldrin Montana
>            Priority: Minor
>
> When compiling Arrow with the following parameter:
> ```bash
> -DARROW_BUILD_BENCHMARKS_REFERENCE="ON"
> ```
>  
> I get this error and other similar ones:
> ```bash
> cpp/src/arrow/io/memory_benchmark.cc:244:26: error: use of undeclared identifier 'Read'; did you mean 'read'?
> using ApplyFn = decltype(Read);
> ```
>  
> The reason is that `memory_benchmark.cc` does not define the Read function, and others, if the SIMD level is NEON (`ARROW_HAVE_NEON` is true).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)