Skip to content

Commit

Permalink
resolving conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
parthraut committed Apr 30, 2024
1 parent f25184b commit 13d4ee8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions zeus/device/gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,12 +543,12 @@ def getName(self) -> str:
return info["market_name"]

@_handle_amdsmi_errors
def setGpuLockedClocks(self, minMemClockMHz: int, maxMemClockMHz: int) -> None:
def setGpuLockedClocks(self, minGpuClockMHz: int, maxGpuClockMHz: int) -> None:
"""Locks the GPU clock of the specified GPU to a range defined by the minimum and maximum GPU clock frequencies. Units: MHz."""
amdsmi.amdsmi_set_gpu_clk_range(
self.handle,
minMemClockMHz,
maxMemClockMHz,
minGpuClockMHz,
maxGpuClockMHz,
clk_type=amdsmi.AmdSmiClkType.GFX,
)

Expand Down Expand Up @@ -686,10 +686,10 @@ def getName(self, index: int) -> str:
return self.gpus[index].getName()

def setGpuLockedClocks(
self, index: int, minMemClockMHz: int, maxMemClockMHz: int
self, index: int, minGpuClockMHz: int, maxGpuClockMHz: int
) -> None:
"""Locks the GPU clock of the specified GPU to a range defined by the minimum and maximum GPU clock frequencies. Units: MHz."""
self.gpus[index].setGpuLockedClocks(minMemClockMHz, maxMemClockMHz)
self.gpus[index].setGpuLockedClocks(minGpuClockMHz, maxGpuClockMHz)

def resetMemoryLockedClocks(self, index: int) -> None:
"""Resets the memory locked clocks of the specified GPU to their default values."""
Expand Down

0 comments on commit 13d4ee8

Please sign in to comment.