Skip to content

Commit

Permalink
forgot to lint 🤪
Browse files Browse the repository at this point in the history
  • Loading branch information
parthraut committed Apr 30, 2024
1 parent 4b50fba commit 9ab0c3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zeus/device/gpu.py
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,9 @@ def supportsGetTotalEnergyConsumption(self) -> bool:
_ = amdsmi.amdsmi_get_energy_count(self.handle)
self._supportsGetTotalEnergyConsumption = True
except amdsmi.AmdSmiLibraryException as e:
if e.get_error_code() == 2: # amdsmi.amdsmi_wrapper.AMDSMI_STATUS_NOT_SUPPORTED
if (
e.get_error_code() == 2
): # amdsmi.amdsmi_wrapper.AMDSMI_STATUS_NOT_SUPPORTED
self._supportsGetTotalEnergyConsumption = False
else:
raise e
Expand Down

0 comments on commit 9ab0c3c

Please sign in to comment.