Skip to content

Commit

Permalink
One last test that was forcing AVX2 instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Jul 17, 2023
1 parent f5e6a16 commit 6171db8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cpp/src/arrow/acero/bloom_filter_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,11 @@ void TestBloomLargeHashHelper(int64_t hardware_flags, int64_t block,
//
void TestBloomLarge(BloomFilterBuildStrategy strategy, int64_t num_build, bool use_avx2,
bool enable_prefetch) {
int64_t hardware_flags = use_avx2 ? ::arrow::internal::CpuInfo::AVX2 : 0;
int64_t hardware_flags = use_avx2 ? CpuInfo::AVX2 : 0;
if (hardware_flags && !CpuInfo::GetInstance()->IsSupported(hardware_flags)) {
// What else?
return;
}

// Largest 63-bit prime
constexpr uint64_t prime = 0x7FFFFFFFFFFFFFE7ULL;
Expand Down

0 comments on commit 6171db8

Please sign in to comment.