Skip to content

Commit 9d655fc

Browse files
committed
Improve diagnostic when failing to lock old cards' clocks.
The issue is that the APIs we currently use don't support older hardware. Users can still lookup the desired frequency for their HW and manually lock clocks with nvidia-smi.
1 parent 9d0b223 commit 9d655fc

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nvbench/device_info.cu

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,10 @@ catch (nvml::call_failed &e)
131131
{
132132
NVBENCH_THROW(std::runtime_error,
133133
"GPU clock rates can only be modified for Volta and later. "
134-
"Device: {} ({}) SM: {} < {}",
134+
"Device: {} ({}) SM: {} < {}. For older cards, look up the "
135+
"desired frequency for your card and lock clocks manually "
136+
"with `nvidia-smi -lgc <freq_MHz>,<freq_MHz>` (or -rgc to "
137+
"unlock).",
135138
this->get_name(),
136139
this->get_id(),
137140
this->get_sm_version(),

0 commit comments

Comments
 (0)