Skip to content

Commit

Permalink
Add driver version.
Browse files Browse the repository at this point in the history
  • Loading branch information
bethune-bryant committed Aug 8, 2024
1 parent dfce699 commit f1abc19
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion gpustat/rocml.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,10 @@ def nvmlDeviceGetTemperature(handle, loc=NVML_TEMPERATURE_GPU):


def nvmlSystemGetDriverVersion():
return ""
retval = rocmi.get_driver_version()
if retval is None:
return ""
return retval


def check_driver_nvml_version(driver_version_str: str):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def run(self):

install_requires = [
'nvidia-ml-py>=12.535.108', # see #107, #143, #161
'rocmi>=0.2', # see #137
'rocmi>=0.3', # see #137
'psutil>=5.6.0', # GH-1447
'blessed>=1.17.1', # GH-126
'typing_extensions',
Expand Down

0 comments on commit f1abc19

Please sign in to comment.