From 2a01aa5b4e5648109e8f837c366b57206f5a8cf7 Mon Sep 17 00:00:00 2001 From: Maneesh Gupta Date: Thu, 20 Jul 2023 09:55:37 +0530 Subject: [PATCH] Update performance_common.hh Replace std::reduce with std::accumulate due to RHEL build issues. [ROCm/hip-tests commit: 2c7f3749fb130759114b757dd0a8b23e9dac38da] --- projects/hip-tests/catch/include/performance_common.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hip-tests/catch/include/performance_common.hh b/projects/hip-tests/catch/include/performance_common.hh index a40d6b3f5c..9b0c790444 100644 --- a/projects/hip-tests/catch/include/performance_common.hh +++ b/projects/hip-tests/catch/include/performance_common.hh @@ -155,7 +155,7 @@ template class Benchmark { time_ = .0; } - float sum = std::reduce(cbegin(samples), cend(samples)); + float sum = std::accumulate(cbegin(samples), cend(samples), .0); float mean = sum / samples.size(); float deviation =