Skip to content

Commit

Permalink
Expanded incompatible graphics clock message to include compatible cl…
Browse files Browse the repository at this point in the history
…ock frequencies
  • Loading branch information
fjwillemsen committed Oct 19, 2023
1 parent e980b23 commit 844d283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel_tuner/observers/nvml.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def set_clocks(self, mem_clock, gr_clock):
if mem_clock not in self.supported_mem_clocks:
raise ValueError("Illegal value for memory clock")
if gr_clock not in self.supported_gr_clocks[mem_clock]:
raise ValueError("Graphics clock incompatible with memory clock")
raise ValueError(f"Graphics clock incompatible with memory clock ({mem_clock}), compatible graphics clocks: {self.supported_gr_clocks[mem_clock]}")
if self.use_locked_clocks:
try:
pynvml.nvmlDeviceSetGpuLockedClocks(self.dev, gr_clock, gr_clock)
Expand Down

0 comments on commit 844d283

Please sign in to comment.