Skip to content

Commit 5c0d674

Browse files
committed
Fix overflow in default clock rate
1 parent 2ba2d11 commit 5c0d674

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nvbench/device_info.cuh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ struct device_info
109109
/// @return The default clock rate of the SM in Hz.
110110
[[nodiscard]] std::size_t get_sm_default_clock_rate() const
111111
{ // kHz -> Hz
112-
return static_cast<std::size_t>(m_prop.clockRate * 1000);
112+
return static_cast<std::size_t>(m_prop.clockRate) * 1000;
113113
}
114114

115115
/// @return The number of physical streaming multiprocessors on this device.

0 commit comments

Comments
 (0)