Skip to content

Commit 8e08479

Browse files
committed
Remove redundant method
1 parent 85887a8 commit 8e08479

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

nvbench/detail/measure_cold.cu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ void measure_cold_base::record_measurements()
8787
{
8888
if (!m_run_once)
8989
{
90-
auto peak_clock_rate = static_cast<float>(m_state.get_device()->get_sm_peak_clock_rate());
90+
auto peak_clock_rate = static_cast<float>(m_state.get_device()->get_sm_default_clock_rate());
9191

9292
if (m_gpu_frequency.has_throttled(peak_clock_rate, m_throttle_threshold))
9393
{

nvbench/device_info.cuh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,6 @@ struct device_info
148148
return static_cast<std::size_t>(m_prop.memoryClockRate) * 1000;
149149
}
150150

151-
/// @return The peak clock rate of the SM in Hz.
152-
[[nodiscard]] std::size_t get_sm_peak_clock_rate() const
153-
{ // kHz -> Hz
154-
return static_cast<std::size_t>(m_prop.clockRate) * 1000;
155-
}
156-
157151
/// @return The width of the global memory bus in bits.
158152
[[nodiscard]] int get_global_memory_bus_width() const { return m_prop.memoryBusWidth; }
159153

0 commit comments

Comments
 (0)