Skip to content

Commit 497eaed

Browse files
committed
Use correct timer when computing cpu stats in measure_cold.
1 parent 618e1f0 commit 497eaed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nvbench/detail/measure_cold.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ bool measure_cold_base::is_finished()
120120
void measure_cold_base::run_trials_epilogue()
121121
{
122122
// Only need to compute this at the end, not per iteration.
123-
const auto cpu_mean = m_total_cuda_time / static_cast<nvbench::float64_t>(m_total_samples);
123+
const auto cpu_mean = m_total_cpu_time / static_cast<nvbench::float64_t>(m_total_samples);
124124
const auto cpu_stdev = nvbench::detail::statistics::standard_deviation(m_cpu_times.cbegin(),
125125
m_cpu_times.cend(),
126126
cpu_mean);

0 commit comments

Comments
 (0)