Skip to content

Unable to display AMD GPU Stats on Windows  #49

@Nealtron

Description

@Nealtron

Describe the bug
AMD GPU load stats missing

To Reproduce
Steps to reproduce the behavior:
Launch the application.

Expected behavior
GPU load to be displayed.

Screenshots / photos of the Turing screen
PXL_20220918_131930841

Environment:

  • Release or branch of this project
    • 2.0.3
  • OS with version
    • Windows 11
  • Python version [e.g. Python 3.8, to get it run python3 --version]
    • 3.10.6
  • Hardware [e.g. Intel CPU, Nvidia GPU, Raspberry Pi 3 B+ ...]
    • AMD 9 5900X
    • ASUS Crosshair VI Hero WiFi
    • AMD RX 5700 XT (Gigabyte)

Additional context

PS E:\>
PS E:\> cd '.\Turing Display\'
PS E:\Turing Display> cd .\turing-smart-screen-python-2.0.3\
PS E:\Turing Display\turing-smart-screen-python-2.0.3>
PS E:\Turing Display\turing-smart-screen-python-2.0.3>
PS E:\Turing Display\turing-smart-screen-python-2.0.3> python .\main.py
09:13:45 [INFO] Loading theme 3.5inchTheme2 from res/themes/3.5inchTheme2/theme.yaml
09:13:45 [DEBUG] Auto detected COM port: COM4
09:13:45 [INFO] Display reset (COM port may change)...
09:13:46 [DEBUG] Auto detected COM port: COM4
09:13:46 [INFO] HW revision A does not support backplate LED color setting
09:13:46 [DEBUG] Drawing Image: BACKGROUND
09:13:46 [DEBUG] Drawing Text: DISK_USED_LABEL
09:13:46 [DEBUG] Drawing Text: DISK_FREE_LABEL
09:13:46 [DEBUG] Drawing Text: DISK_TOTAL_LABEL
09:13:46 [WARNING] Your CPU temperature is not supported yet
09:13:46 [WARNING] Your GPU memory size/usage stats are not supported yet
09:13:46 [INFO] Detected AMD GPU(s)
Exception in thread GPU_Stats:
Traceback (most recent call last):
  File "C:\Users\Nealio\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "C:\Users\Nealio\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "E:\Turing Display\turing-smart-screen-python-2.0.3\library\scheduler.py", line 56, in wrap
    periodic(scheduler, interval, func)
  File "E:\Turing Display\turing-smart-screen-python-2.0.3\library\scheduler.py", line 47, in periodic
    action(*actionargs)
  File "E:\Turing Display\turing-smart-screen-python-2.0.3\library\scheduler.py", line 109, in GpuAmdStats
    stats.GpuAmd.stats()
  File "E:\Turing Display\turing-smart-screen-python-2.0.3\library\stats.py", line 339, in stats
    load_all = [item.getCurrentUsage() for item in amd_gpus]
  File "E:\Turing Display\turing-smart-screen-python-2.0.3\library\stats.py", line 339, in <listcomp>
    load_all = [item.getCurrentUsage() for item in amd_gpus]
  File "C:\Users\Nealio\AppData\Local\Programs\Python\Python310\lib\site-packages\pyadl\pyadl.py", line 293, in getCurrentUsage
    return ADLManager.getInstance().getCurrentUsage(self)
  File "C:\Users\Nealio\AppData\Local\Programs\Python\Python310\lib\site-packages\pyadl\pyadl.py", line 182, in getCurrentUsage
    raise ADLError("Failed to get CurrentUsage")
pyadl.pyadl.ADLError: Failed to get CurrentUsage

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions