Skip to content

Commit 4b3ea81

Browse files
committed
Issue #40: fix pyadl import issue
1 parent 67e56e2 commit 4b3ea81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

library/stats.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
# AMD GPU on Linux
55
try:
66
import pyamdgpuinfo
7-
except ImportError:
7+
except:
88
pyamdgpuinfo = None
99

1010
# AMD GPU on Windows
1111
try:
1212
import pyadl
13-
except ImportError:
13+
except:
1414
pyadl = None
1515

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

321+
# Memory usage not supported by pyadl
321322
display_gpu_stats(load, -1, -1, temperature)
322323

323324
@staticmethod

0 commit comments

Comments
 (0)