From 6171db84d10b8f5a48e34b1c04b5f3404f6c6525 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Thu, 13 Jul 2023 18:28:39 +0200 Subject: [PATCH] One last test that was forcing AVX2 instructions --- cpp/src/arrow/acero/bloom_filter_test.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cpp/src/arrow/acero/bloom_filter_test.cc b/cpp/src/arrow/acero/bloom_filter_test.cc index 0304b559a6045..eadd098cf85cb 100644 --- a/cpp/src/arrow/acero/bloom_filter_test.cc +++ b/cpp/src/arrow/acero/bloom_filter_test.cc @@ -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;