From 41ab1b61e36bee3e4ee06649d55c8dd29f9dc654 Mon Sep 17 00:00:00 2001 From: "Jonathan R. Madsen" Date: Mon, 20 Jun 2022 00:46:55 -0500 Subject: [PATCH] Inclusive range for OMNITRACE_SAMPLING_CPUS (#54) - previously, a value of 0-3 would be CPUs 0, 1, and 2 - now, a value of 0-3 would be CPUs 0, 1, 2, and 3 [ROCm/rocprofiler-systems commit: 0ef9a1531a22b7400c365f804df9b3a85a5af303] --- .../source/lib/omnitrace/library/cpu_freq.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocprofiler-systems/source/lib/omnitrace/library/cpu_freq.cpp b/projects/rocprofiler-systems/source/lib/omnitrace/library/cpu_freq.cpp index 2fd7572994..5a8cbba242 100644 --- a/projects/rocprofiler-systems/source/lib/omnitrace/library/cpu_freq.cpp +++ b/projects/rocprofiler-systems/source/lib/omnitrace/library/cpu_freq.cpp @@ -128,7 +128,7 @@ config() _vv.size() != 2, "Invalid CPU range specification: %s. Required format N-M, e.g. 0-4", _v.c_str()); - for(size_t i = std::stoull(_vv.at(0)); i < std::stoull(_vv.at(1)); ++i) + for(size_t i = std::stoull(_vv.at(0)); i <= std::stoull(_vv.at(1)); ++i) _enabled_freqs.emplace(i); } else