On 17/10/2021 21:50, Linux-Fan wrote:

There, the suggested fix is to switch to amdgpu-pro (which seems to
remedy the issue but not entirely...) which lead me to try the `.deb`
files from AMD. I downloaded
`amdgpu-pro-21.20-1292797-ubuntu-20.04.tar.xz` and it seems to have
installed just fine.

Can't install that on my Debian Bullseye. I have clean system with
nothing modified or added from outside of Debian.

Result:
sudo ./amdgpu-install --opencl=legacy,rocr
(...)
Loading new amdgpu-5.11.19.98-1290604 DKMS files...
Building for 5.10.0-9-amd64
Building for architecture amd64
Building initial module for 5.10.0-9-amd64
Error! Bad return status for module build on kernel: 5.10.0-9-amd64 (amd64)
Consult /var/lib/dkms/amdgpu/5.11.19.98-1290604/build/make.log for more
information.
dpkg: error processing package amdgpu-dkms (--configure):
 installed amdgpu-dkms package post-installation script subprocess
returned error exit status 10

make.log shows:
(...)
/var/lib/dkms/amdgpu/5.11.19.98-1290604/build/Makefile:26: "Local GCC
version 100202 does not match kernel compiler GCC version 100201"
/var/lib/dkms/amdgpu/5.11.19.98-1290604/build/Makefile:27: "This may
cause unexpected and hard-to-isolate compiler-related issues"
  MODPOST /var/lib/dkms/amdgpu/5.11.19.98-1290604/build/Module.symvers
ERROR: modpost: "migrate_vma_finalize"
[/var/lib/dkms/amdgpu/5.11.19.98-1290604/build/amd/amdgpu/amdgpu.ko]
undefined!
ERROR: modpost: "migrate_vma_pages"
[/var/lib/dkms/amdgpu/5.11.19.98-1290604/build/amd/amdgpu/amdgpu.ko]
undefined!
ERROR: modpost: "migrate_vma_setup"
[/var/lib/dkms/amdgpu/5.11.19.98-1290604/build/amd/amdgpu/amdgpu.ko]
undefined!
ERROR: modpost: "devm_request_free_mem_region"
[/var/lib/dkms/amdgpu/5.11.19.98-1290604/build/amd/amdgpu/amdgpu.ko]
undefined!
make[2]: ***
[/usr/src/linux-headers-5.10.0-9-common/scripts/Makefile.modpost:124:
/var/lib/dkms/amdgpu/5.11.19.98-1290604/build/Module.symvers] Error 1
make[2]: *** Deleting file
'/var/lib/dkms/amdgpu/5.11.19.98-1290604/build/Module.symvers'
make[1]: *** [/usr/src/linux-headers-5.10.0-9-common/Makefile:1750:
modules] Error 2
make: *** [/usr/src/linux-headers-5.10.0-9-common/Makefile:185:
__sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-5.10.0-9-amd64'

I tried various attempts:
sudo ./amdgpu-install --opencl=rocr --headless
sudo ./amdgpu-install
sudo ./amdgpu-install --opencl=rocr

Same result each time, something with compiling amdgpu-dkms.



As a result, I should be running the proprietary driver now and thus
have OpenCL running -- I only ever tested it with a demo application,
though...

I'd love that, but it fails on my system. What system do you have? How
did you do it?

--
With kindest regards, Piotr.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀

Reply via email to