GPU detection failed: process exited with status 1: Operation not permitted - Ubuntu Linux 20.04.1LTS

Message boards : Questions and problems : GPU detection failed: process exited with status 1: Operation not permitted - Ubuntu Linux 20.04.1LTS
Message board moderation

To post messages, you must log in.

AuthorMessage
ausymark

Send message
Joined: 11 Aug 20
Posts: 3
Australia
Message 100287 - Posted: 12 Aug 2020, 0:01:23 UTC

Hey Gang,

Its been a while since ive tried to run the GPU / OpenCL side of crunching, so with AMD releasing its latest drivers for Ubuntus latest long term support 20.04.1 I thought I would try again.

Ive had BOINC happily crunching cpu tasks.

Ive installed the latest AMD Pro drivers with the Vega+ OpenCL drivers

However it seems that BOINC is trying to detect the Radeon 5700XT but the system is denying the request.

Note: The boinc user is part of the video group and boinc is the latest version (7.16.6 x64) from the Ubuntu Repos.

So any ideas?

Thx in advance
ID: 100287 · Report as offensive
Profile Keith Myers
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 17 Nov 16
Posts: 863
United States
Message 100289 - Posted: 12 Aug 2020, 1:51:24 UTC - in response to Message 100287.  

What is BOINC complaining about? Post the first 30 lines of the startup of BOINC.
ID: 100289 · Report as offensive
Profile Keith Myers
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 17 Nov 16
Posts: 863
United States
Message 100290 - Posted: 12 Aug 2020, 1:58:52 UTC

As far as I know it works if you install the AMD Pro drivers via the command line with this command.

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


I just asked a team mate what was the current status of the AMD driver installation. He runs a AMD 5700.

The tricky part is always the OpenCL installation with the legacy invocation.
ID: 100290 · Report as offensive
ausymark

Send message
Joined: 11 Aug 20
Posts: 3
Australia
Message 100296 - Posted: 12 Aug 2020, 21:21:33 UTC - in response to Message 100290.  

Yea, besides the 'headless' directive thats how the drivers were installed.

Further info:

Thu 13 Aug 2020 06:48:06 | | Starting BOINC client version 7.16.6 for x86_64-pc-linux-gnu
Thu 13 Aug 2020 06:48:06 | | log flags: file_xfer, sched_ops, task, coproc_debug
Thu 13 Aug 2020 06:48:06 | | Libraries: libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Thu 13 Aug 2020 06:48:06 | | Data directory: /var/lib/boinc-client
Thu 13 Aug 2020 06:48:06 | | [coproc] launching child process at /usr/bin/boinc
Thu 13 Aug 2020 06:48:06 | | [coproc] with data directory /var/lib/boinc-client
Thu 13 Aug 2020 06:48:06 | | GPU detection failed: process exited with status 1: Operation not permitted
Thu 13 Aug 2020 06:48:06 | | [coproc] read_coproc_info_file() returned error -108
Thu 13 Aug 2020 06:48:06 | | No usable GPUs found
Thu 13 Aug 2020 06:48:06 | | libc: Ubuntu GLIBC 2.31-0ubuntu9 version 2.31
ID: 100296 · Report as offensive
Profile Keith Myers
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 17 Nov 16
Posts: 863
United States
Message 100297 - Posted: 12 Aug 2020, 22:14:32 UTC

So executing
groups boinc

results in??:
keith@midget:~ $ groups boinc
boinc : boinc video

What happens if you install clinfo?

sudo apt install clinfo


That program for me is the definitive way of exposing all OpenCL platforms on a host. I wonder if you have a conflicting version of OpenCL installed, like the Mesa or cpu POCL drivers that may be preventing permission.

I don't know if the Nvidia method of installing OpenCL support would help you. Probably wouldn't hurt since it isn't working anyway. Try this:

sudo apt-get install ocl-icd-libopencl1
ID: 100297 · Report as offensive
Profile Jord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15479
Netherlands
Message 100298 - Posted: 12 Aug 2020, 22:17:19 UTC

ID: 100298 · Report as offensive
ausymark

Send message
Joined: 11 Aug 20
Posts: 3
Australia
Message 100305 - Posted: 13 Aug 2020, 21:18:14 UTC

Hi Gang

Thanks for the pointers. I had a bit more time to investigate this morning. In the end discovered that the Oibaf drivers (these are bleeding edge, which includes bleeding edge OpenCL drivers), were, and have been, the cause of the issue; which is odd as they are what I have always used to get OpenCL support in the past.

To get everything back to fresh I uninstalled the AMD GPU-Pro-20.30 drivers. Rebooted

Reinstalled the Oibaf drivers (running on the assumption that there may have been a remnant in there) Rebooted, then uninstalled the Oibaf drivers. Rebooted.

Now running on the standard Ubuntu 20.04LTS drivers I then installed the OpenCL components from the AMD GPU Pro drivers from above with:

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

then rebooted

Boinc now loads OpenCL 2.0 as well as OpenCL 1.0 (Which is not in its settings, so it ignores that, but thats ok as most Boinc projects that I run use OpenCL 2 anyway)

Once again thx for your help :)
ID: 100305 · Report as offensive
Profile Keith Myers
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 17 Nov 16
Posts: 863
United States
Message 100306 - Posted: 13 Aug 2020, 21:38:35 UTC - in response to Message 100305.  

Glad you got it working. I think that Oibaf used to be the preferred way to get the OpenCL working but that now, finally, the standard AMD Pro drivers are working very well and is now the preferred package.
Only took AMD two years to deliver a working package for Linux.
ID: 100306 · Report as offensive

Message boards : Questions and problems : GPU detection failed: process exited with status 1: Operation not permitted - Ubuntu Linux 20.04.1LTS

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.