Skip to content

Commit

Permalink
GH-38907: [C++] Stop installing internal bpacking_simd* headers (#38908)
Browse files Browse the repository at this point in the history
### Rationale for this change

They are for internal use. We don't need to install them.

### What changes are included in this PR?

Use `_internal.h` suffix to avoid installing them.
 
### Are these changes tested?

Yes.

### Are there any user-facing changes?

No.
* Closes: #38907

Authored-by: Sutou Kouhei <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
  • Loading branch information
kou authored Nov 29, 2023
1 parent 6f497ec commit 9aff60a
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions cpp/cmake_modules/ThirdpartyToolchain.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2388,10 +2388,10 @@ if(ARROW_USE_XSIMD)
resolve_dependency(xsimd
FORCE_ANY_NEWER_VERSION
TRUE
IS_RUNTIME_DEPENDENCY
FALSE
REQUIRED_VERSION
"8.1.0"
PC_PACKAGE_NAMES
xsimd)
"8.1.0")

if(xsimd_SOURCE STREQUAL "BUNDLED")
add_library(arrow::xsimd INTERFACE IMPORTED)
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/util/bpacking_avx2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// under the License.

#include "arrow/util/bpacking_avx2.h"
#include "arrow/util/bpacking_simd256_generated.h"
#include "arrow/util/bpacking_simd256_generated_internal.h"
#include "arrow/util/bpacking_simd_internal.h"

namespace arrow {
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/util/bpacking_avx512.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// under the License.

#include "arrow/util/bpacking_avx512.h"
#include "arrow/util/bpacking_simd512_generated.h"
#include "arrow/util/bpacking_simd512_generated_internal.h"
#include "arrow/util/bpacking_simd_internal.h"

namespace arrow {
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/util/bpacking_neon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
// under the License.

#include "arrow/util/bpacking_neon.h"
#include "arrow/util/bpacking_simd128_generated.h"
#include "arrow/util/bpacking_simd128_generated_internal.h"
#include "arrow/util/bpacking_simd_internal.h"

namespace arrow {
Expand Down
6 changes: 3 additions & 3 deletions cpp/src/arrow/util/bpacking_simd_codegen.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
# under the License.

# Usage:
# python bpacking_simd_codegen.py 128 > bpacking_simd128_generated.h
# python bpacking_simd_codegen.py 256 > bpacking_simd256_generated.h
# python bpacking_simd_codegen.py 512 > bpacking_simd512_generated.h
# python bpacking_simd_codegen.py 128 > bpacking_simd128_generated_internal.h
# python bpacking_simd_codegen.py 256 > bpacking_simd256_generated_internal.h
# python bpacking_simd_codegen.py 512 > bpacking_simd512_generated_internal.h

from functools import partial
import sys
Expand Down

0 comments on commit 9aff60a

Please sign in to comment.