Skip to content

Commit

Permalink
move set_clocks when using locked clocks below init
Browse files Browse the repository at this point in the history
  • Loading branch information
benvanwerkhoven committed Jul 24, 2024
1 parent 819c0eb commit a48793b
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 @@ -73,9 +73,9 @@ def __init__(self, device_id=0, nvidia_smi_fallback="nvidia-smi", use_locked_clo
# try to set highest supported clocks
mem_clock = self.supported_mem_clocks[0]
gr_clock = self.supported_gr_clocks[mem_clock][0]
self.set_clocks(mem_clock, gr_clock)
self.locked_gr_clock = 0
self.locked_mem_clock = 0
self.set_clocks(mem_clock, gr_clock)
except pynvml.NVMLError_NotSupported:
# switch to using application clocks
self.use_locked_clocks = False
Expand Down

0 comments on commit a48793b

Please sign in to comment.