Skip to content

Commit

Permalink
Always optimize SIMD codes
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 7, 2022
1 parent 22cdaf6 commit 1f4d567
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cpp/src/parquet/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -181,16 +181,18 @@ if(ARROW_HAVE_RUNTIME_AVX2)
# AVX2 is used as a proxy for BMI2.
list(APPEND PARQUET_SRCS level_comparison_avx2.cc level_conversion_bmi2.cc)
set_source_files_properties(level_comparison_avx2.cc
PROPERTIES SKIP_PRECOMPILE_HEADERS ON COMPILE_FLAGS
"${ARROW_AVX2_FLAG}")
PROPERTIES SKIP_PRECOMPILE_HEADERS ON
COMPILE_FLAGS
"${ARROW_AVX2_FLAG} ${CXX_FLAGS_RELEASE}")
# WARNING: DO NOT BLINDLY COPY THIS CODE FOR OTHER BMI2 USE CASES.
# This code is always guarded by runtime dispatch which verifies
# BMI2 is present. For a very small number of CPUs AVX2 does not
# imply BMI2.
set_source_files_properties(level_conversion_bmi2.cc
PROPERTIES SKIP_PRECOMPILE_HEADERS ON
COMPILE_FLAGS
"${ARROW_AVX2_FLAG} -DARROW_HAVE_BMI2 -mbmi2")
"${ARROW_AVX2_FLAG} -DARROW_HAVE_BMI2 ${CXX_FLAGS_RELEASE}"
)
endif()

if(PARQUET_REQUIRE_ENCRYPTION)
Expand Down

0 comments on commit 1f4d567

Please sign in to comment.