Package: python3-gpumodules
Version: 3.5.0-1
Severity: normal
Tags: upstream
X-Debbugs-Cc: onit...@gmail.com

Dear Maintainer,

gpu-pac currently fails on my system because of a hex string parsing issue in
python3-gpumodules:

Traceback (most recent call last):
  File "/usr/bin/gpu-pac", line 1323, in <module>
    main()
  File "/usr/bin/gpu-pac", line 1274, in main
    gpu_list.set_gpu_list()
  File "/usr/lib/python3/dist-packages/GPUmodules/GPUmodule.py", line 1666, in
set_gpu_list
    self.amd_featuremask = env.GUT_CONST.read_amdfeaturemask()
  File "/usr/lib/python3/dist-packages/GPUmodules/env.py", line 205, in
read_amdfeaturemask
    self.amdfeaturemask = int(fm_file.readline())
ValueError: invalid literal for int() with base 10: '0xffffbfff\n'

This issue is fixed in gpu-utils 3.6.0. Please push an upgrade.

In the meantime, there is a simple workaround:
In /usr/lib/python3/dist-packages/GPUmodules/env.py, line 205, add ", 0" so
int() will accept hex strings in addition to decimal.
The line should look like this:
                self.amdfeaturemask = int(fm_file.readline(), 0)

Thank you very much.

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-8-amd64 (SMP w/24 CPU threads)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-gpumodules depends on:
ii  lshw                      02.18.85-0.7
ii  python3                   3.9.2-3
ii  python3-cycler            0.10.0-3
ii  python3-dateutil          2.8.1-6
ii  python3-kiwisolver        1.3.1-1+b1
ii  python3-matplotlib        3.3.4-1
ii  python3-numpy             1:1.19.5-1
ii  python3-pandas            1.1.5+dfsg-2
ii  python3-pyparsing         2.4.7-1
ii  python3-ruamel.yaml       0.16.12-2
ii  python3-ruamel.yaml.clib  0.2.2-1+b2
ii  python3-six               1.16.0-2
ii  python3-tz                2021.1-1

python3-gpumodules recommends no packages.

Versions of packages python3-gpumodules suggests:
ii  ricks-amdgpu-utils  3.5.0-1

Reply via email to