From 6e839f9f10d68e296194c7d311c18090f6c85151 Mon Sep 17 00:00:00 2001 From: Shreyas Atre Date: Tue, 4 Feb 2025 21:56:30 -0600 Subject: [PATCH] Address inspect tool Signed-off-by: Shreyas Atre --- .../hpx/parallel/algorithms/detail/reduce_deterministic.hpp | 4 ++-- .../include/hpx/parallel/algorithms/reduce_deterministic.hpp | 1 + .../tests/performance/benchmark_reduce_deterministic.cpp | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/libs/core/algorithms/include/hpx/parallel/algorithms/detail/reduce_deterministic.hpp b/libs/core/algorithms/include/hpx/parallel/algorithms/detail/reduce_deterministic.hpp index 3fc0ec2e434..2c2aeabf4ce 100644 --- a/libs/core/algorithms/include/hpx/parallel/algorithms/detail/reduce_deterministic.hpp +++ b/libs/core/algorithms/include/hpx/parallel/algorithms/detail/reduce_deterministic.hpp @@ -45,7 +45,7 @@ namespace hpx::parallel::detail { rfa.unsafe_add(init); rfa.renorm(); size_t count = 0; - T max_val = std::abs(std::numeric_limits::min()); + T max_val = std::abs((std::numeric_limits::min)()); for (auto e = first; e != last; ++e) { T temp_max_val = std::abs(static_cast(*e)); @@ -86,7 +86,7 @@ namespace hpx::parallel::detail { rfa.zero(); rfa += init; size_t count = 0; - T max_val = std::abs(std::numeric_limits::min()); + T max_val = std::abs((std::numeric_limits::min)()); std::size_t partition_size_lim = 0; for (auto e = first; partition_size_lim < partition_size; partition_size_lim++, e++) diff --git a/libs/core/algorithms/include/hpx/parallel/algorithms/reduce_deterministic.hpp b/libs/core/algorithms/include/hpx/parallel/algorithms/reduce_deterministic.hpp index 56135161495..fddfd2bff1a 100644 --- a/libs/core/algorithms/include/hpx/parallel/algorithms/reduce_deterministic.hpp +++ b/libs/core/algorithms/include/hpx/parallel/algorithms/reduce_deterministic.hpp @@ -371,6 +371,7 @@ namespace hpx { #include #include +#include #include #include #include diff --git a/libs/core/algorithms/tests/performance/benchmark_reduce_deterministic.cpp b/libs/core/algorithms/tests/performance/benchmark_reduce_deterministic.cpp index c6604aaea44..a9138723483 100644 --- a/libs/core/algorithms/tests/performance/benchmark_reduce_deterministic.cpp +++ b/libs/core/algorithms/tests/performance/benchmark_reduce_deterministic.cpp @@ -16,6 +16,7 @@ #include #include +#include #include #include #include