Skip to content

[C++] Unifying simd header includings #44249

Closed

Description

@zanmato1984

Describe the enhancement requested

Some of simd-related files are including concrete system headers such as:

#if defined(ARROW_HAVE_RUNTIME_AVX2)
# include <immintrin.h>
#endif

However I see that https://github.com/apache/arrow/blob/6f64af54ea3662b7e1685b84a81429df14beace1/cpp/src/arrow/util/simd.h seems to be a centralized header to sort out all the platform-specific checks. Besides, I think it is a good place to put universal definitions - e.g. working around certain compiler bugs like what #44116 did - to be visible to all simd source files.

Therefore I think we can unify the simd header inclusion by utilizing simd.h.

Component(s)

C++

Activity

  1. added a commit that references this issue on Oct 2, 2024
  2. added this to the 18.0.0 milestone on Oct 2, 2024
  3. pitrou commented on Oct 2, 2024

    @pitrou
    Member

    Issue resolved by pull request 44250
    #44250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions