Page 1 of 1

OpenCL, amd mobile vega 10 and Linux Mint 19.3

Posted: Mon Apr 06, 2020 2:37 pm
by jeffmr4
So I found the drivers I need to download for my graphics card on amd's site, amdgpu-pro-19.50-967956-ubuntu-18.04 However, when I try to install using,

./amdgpu-pro-install --opencl=pal,legacy --headless

I get the following error,

Code: Select all

Setting up amdgpu-core (19.50-967956) ...
Setting up libdrm-amdgpu-common (1.0.0-967956) ...
Setting up libdrm2-amdgpu:amd64 (1:2.4.99-967956) ...
Setting up amdgpu-dkms (19.50-967956) ...
Loading new amdgpu-19.50-967956 DKMS files...
Building for 5.3.0-46-generic
Building for architecture amd64
Building initial module for 5.3.0-46-generic
configure: error: in `/var/lib/dkms/amdgpu/19.50-967956/build':
configure: error: C compiler cannot create executables
See `config.log' for more details
Error! Bad return status for module build on kernel: 5.3.0-46-generic (amd64)
Consult /var/lib/dkms/amdgpu/19.50-967956/build/make.log for more information.
Setting up amdgpu-pro-core (19.50-967956) ...
Setting up libdrm-amdgpu-amdgpu1:amd64 (1:2.4.99-967956) ...
Setting up libopencl1-amdgpu-pro:amd64 (19.50-967956) ...
Setting up opencl-orca-amdgpu-pro-icd:amd64 (19.50-967956) ...
Setting up opencl-amdgpu-pro-comgr (19.50-967956) ...
Setting up clinfo-amdgpu-pro (19.50-967956) ...
Setting up opencl-amdgpu-pro-icd (19.50-967956) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
WARNING: amdgpu dkms failed for running kernel
jeffmr@jeffmr-Inspiron-5585:~/Downloads/amdgpu-pro-19.50-967956-ubuntu-18.04$
If I leave the incomplete install and reboot, FAHcontrol System Info shows,

OpenCL Not detected: clGetDeviceIDs( ) returned -1

Any ideas?

I am able to uninstall successfully.

Re: OpenCL, amd mobile vega 10 and Linux Mint 19.3

Posted: Tue Apr 07, 2020 6:36 am
by foldy
sudo apt-get install ocl-icd-libopencl1
sudo apt-get install ocl-icd-opencl-dev

Re: OpenCL, amd mobile vega 10 and Linux Mint 19.3

Posted: Tue Apr 07, 2020 6:03 pm
by jeffmr4
Thank you for the suggestion. I have tried that also but I get the same error except -1001.

Re: OpenCL, amd mobile vega 10 and Linux Mint 19.3

Posted: Tue Apr 07, 2020 7:22 pm
by toTOW
Did you follow what's indicated here : viewtopic.php?f=81&t=33353 ?

Re: OpenCL, amd mobile vega 10 and Linux Mint 19.3

Posted: Tue Apr 07, 2020 7:34 pm
by ipkh
In this case the dkms module is not installing. The driver module can't be built to the current kernel version I think.
I'm not up to date on dkms and how it handles kernels but it's possible you need a kernel update or something.

Re: OpenCL, amd mobile vega 10 and Linux Mint 19.3

Posted: Wed Apr 08, 2020 12:06 am
by jeffmr4
Thank you for the replies. toTow I will try that link. It looks promising.