You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@arrow.apache.org by "Antoine Pitrou (Jira)" <ji...@apache.org> on 2021/10/18 10:36:00 UTC

[jira] [Comment Edited] (ARROW-14361) [C++] Define a MAX default value for ARROW_SIMD_LEVEL

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

Antoine Pitrou edited comment on ARROW-14361 at 10/18/21, 10:35 AM:
--------------------------------------------------------------------

Not "MAX" because the max shouldn't be the default. Just "DEFAULT" or "ARCH_DEFAULT" then? (which would select SSE4.2 on x86, NEON on ARM, and nothing on other archs...).


was (Author: pitrou):
Not "MAX" because the max shouldn't be the default. Just "DEFAULT" then? (which would select SSE4.2 on x86, NEON on ARM, and nothing on other archs...).

> [C++] Define a MAX default value for ARROW_SIMD_LEVEL
> -----------------------------------------------------
>
>                 Key: ARROW-14361
>                 URL: https://issues.apache.org/jira/browse/ARROW-14361
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++
>            Reporter: Krisztian Szucs
>            Priority: Major
>             Fix For: 7.0.0
>
>
> In order to enable {{ARROW_HAVE_NEON}} CMake flag on ARM architectures {{ARROW_SIMD_LEVEL}} option must be set to not {{"NONE"}}, see https://github.com/apache/arrow/blob/master/cpp/cmake_modules/SetupCxxFlags.cmake#L444
> The default value for {{ARROW_SIMD_LEVEL}} is {{SSE4_2}} which is a bit misleading on ARM64, it should rather be {{NEON}} which is not listed as a valid option for {{ARROW_SIMD_LEVEL}}. We may have a {{"MAX"}} default value similarly to the  {{ARROW_RUNTIME_SIMD_LEVEL}} option, see https://github.com/apache/arrow/blob/master/cpp/cmake_modules/DefineOptions.cmake#L115
> Original github comment: https://github.com/apache/arrow/pull/11433#discussion_r729852835
> cc [~yibocai] [~apitrou] 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)