Skip to content

Commit f2011f2

Browse files
committed
Add new hidden summary with percent sm clock scaling,
1 parent e0a486b commit f2011f2

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

nvbench/detail/measure_cold.cu

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,18 @@ void measure_cold_base::generate_summaries()
350350
summ.set_string("hide", "Hidden by default.");
351351
summ.set_float64("value", clock_mean);
352352
}
353+
354+
{
355+
const auto default_clock_rate =
356+
static_cast<nvbench::float64_t>(m_state.get_device()->get_sm_default_clock_rate());
357+
358+
auto &summ = m_state.add_summary("nv/cold/sm_clock_rate/scaling/percent");
359+
summ.set_string("name", "Clock Scaling");
360+
summ.set_string("hint", "percentage");
361+
summ.set_string("description", "Mean SM clock rate as a percentage of default clock rate.");
362+
summ.set_string("hide", "Hidden by default.");
363+
summ.set_float64("value", clock_mean / default_clock_rate);
364+
}
353365
}
354366

355367
// Log if a printer exists:

0 commit comments

Comments
 (0)