Skip to content

Commit

Permalink
Issue #40: fix pyadl import issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mathoudebine committed Sep 12, 2022
1 parent 67e56e2 commit 4b3ea81
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions library/stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
# AMD GPU on Linux
try:
import pyamdgpuinfo
except ImportError:
except:
pyamdgpuinfo = None

# AMD GPU on Windows
try:
import pyadl
except ImportError:
except:
pyadl = None

import library.config as config
Expand Down Expand Up @@ -318,6 +318,7 @@ def stats():
temperature_all = [item.getCurrentTemperature() for item in amd_gpus]
temperature = sum(temperature_all) / len(temperature_all)

# Memory usage not supported by pyadl
display_gpu_stats(load, -1, -1, temperature)

@staticmethod
Expand Down

0 comments on commit 4b3ea81

Please sign in to comment.