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: 0ef9a1531a]
Tento commit je obsažen v:
Jonathan R. Madsen
2022-06-20 00:46:55 -05:00
odevzdal GitHub
rodič 1f3231bc95
revize 41ab1b61e3
+1 -1
Zobrazit soubor
@@ -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