From 5c0d67475735e8017ec7b243f2ba371285a13b18 Mon Sep 17 00:00:00 2001 From: Georgy Evtushenko Date: Fri, 11 Apr 2025 15:44:11 -0700 Subject: [PATCH] Fix overflow in default clock rate --- nvbench/device_info.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvbench/device_info.cuh b/nvbench/device_info.cuh index 4124d96..1bb5262 100644 --- a/nvbench/device_info.cuh +++ b/nvbench/device_info.cuh @@ -109,7 +109,7 @@ struct device_info /// @return The default clock rate of the SM in Hz. [[nodiscard]] std::size_t get_sm_default_clock_rate() const { // kHz -> Hz - return static_cast(m_prop.clockRate * 1000); + return static_cast(m_prop.clockRate) * 1000; } /// @return The number of physical streaming multiprocessors on this device.