BOINC doesn't like the OpenCL in the AMD Proprietary Drivers for Ubuntu?

Message boards : Number crunching : BOINC doesn't like the OpenCL in the AMD Proprietary Drivers for Ubuntu?
Message board moderation

To post messages, you must log in.

AuthorMessage
TBar
Volunteer tester

Send message
Joined: 22 May 99
Posts: 5204
Credit: 840,779,836
RAC: 2,768
United States
Message 1497573 - Posted: 30 Mar 2014, 21:02:31 UTC
Last modified: 30 Mar 2014, 21:12:55 UTC

Seems that way on my Ubuntu host. I just went ten rounds trying to have BOINC see OpenCL on my 6770 in both Ubuntu 10.4 and 12.4. It started when I decided to remove my nVidia drivers/cards and install the 6770. I first tried Catalyst 13.4 from the AMD site. It installed fine and clinfo said OpenCL was working even though BOINC said no OpenCL libraries were installed. I removed 13.4 and tried 12.8, and then 12.1, same problem. Then I removed all drivers and had Ubuntu do the Ubuntu 12.4 Web update...took forever. Then I tried the AMD drivers again with both BOINC 7.0.65 and 7.2.38, Catalyst 12.1, 12.8, 13.4, 13.12...no luck. BOINC said No OpenCL Libraries Installed even though clinfo said otherwise. I tried completely removing BOINC and reinstalling. All that succeeded in doing was having my few remaining APs get trashed. Wonderful, well I'm sure other people enjoyed those unblanked APs...

I then decided to just wipe it all and reinstall 12.4 from my USB stick...since All the tasks were gone anyway. It took much less time than that Web 'Upgrade' from 10.4 to 12.4. SAME PROBLEM with BOINC 7.0.65 and 7.2.38. After trying all the drivers again, I removed the last one and used the Control Panel to install the latest Repository Driver.
It Worked! WTH? So, why does BOINC hate the Drivers from the AMD site but like the one from the Control Panel? After all, the clinfo App said OpenCL was installed with the AMD Drivers.
Strange.
ID: 1497573 · Report as offensive
Profile ML1
Volunteer moderator
Volunteer tester

Send message
Joined: 25 Nov 01
Posts: 20084
Credit: 7,508,002
RAC: 20
United Kingdom
Message 1497824 - Posted: 31 Mar 2014, 12:58:30 UTC - in response to Message 1497573.  
Last modified: 31 Mar 2014, 13:02:24 UTC

... I then decided to just wipe it all and reinstall 12.4 from my USB stick...since All the tasks were gone anyway. It took much less time than that Web 'Upgrade' from 10.4 to 12.4. SAME PROBLEM with BOINC 7.0.65 and 7.2.38. After trying all the drivers again, I removed the last one and used the Control Panel to install the latest Repository Driver.

It Worked! WTH? So, why does BOINC hate the Drivers from the AMD site but like the one from the Control Panel? After all, the clinfo App said OpenCL was installed with the AMD Drivers. ...

The AMD install script is possibly a little too minimal or AMD-buggy...

The "control panel" install from your Linux distribution repositories likely uses exactly the same AMD install but then also performs whatever extra steps or bug fixes are needed to then make it all magically work.


The GPU manufacturer's have been rather slow to join the FLOSS party for making things work easily for the users. Then again, AMD have been better than a certain other company for FLOSS friendliness.


In true FLOSS style, post a bug report to your distro and/or to AMD? You never know, it may well get fixed first time for you and everyone else!

Good you got a solution working :-)

Happy fast crunchin'!
Martin
See new freedom: Mageia Linux
Take a look for yourself: Linux Format
The Future is what We all make IT (GPLv3)
ID: 1497824 · Report as offensive
Urs Echternacht
Volunteer tester
Avatar

Send message
Joined: 15 May 99
Posts: 692
Credit: 135,197,781
RAC: 211
Germany
Message 1497977 - Posted: 31 Mar 2014, 21:48:19 UTC - in response to Message 1497573.  
Last modified: 31 Mar 2014, 21:50:48 UTC

Try if "export set COMPUTE=:0" in your ".profile" (the profile that BOINC uses) could help running the drivers from AMD website. On that website there is also a link to a helpful wiki with tipps on howto install/uninstall the AMD fglrx drivers on different distros.
_\|/_
U r s
ID: 1497977 · Report as offensive
TBar
Volunteer tester

Send message
Joined: 22 May 99
Posts: 5204
Credit: 840,779,836
RAC: 2,768
United States
Message 1497999 - Posted: 31 Mar 2014, 23:00:15 UTC - in response to Message 1497977.  
Last modified: 31 Mar 2014, 23:14:52 UTC

Try if "export set COMPUTE=:0" in your ".profile" (the profile that BOINC uses) could help running the drivers from AMD website. On that website there is also a link to a helpful wiki with tipps on howto install/uninstall the AMD fglrx drivers on different distros.

export set COMPUTE=:0
Where would that be? I might try it as the host isn't being used at the moment. The Uninstall is easy, but, there are two uninstallers in usr/share/ati. One named something like amd_unistaller, the other fglrx_uninstaller. They both appear to do a complete uninstall. Is there any difference in the two? I forget where the nVidia uninstaller is, I only used it once. I used the amd/fglrx uninstaller many times. The install is basically the same as with the nVidia drivers as explained in the second post here, How do I install latest NVIDIA drivers by hand?
ID: 1497999 · Report as offensive
TBar
Volunteer tester

Send message
Joined: 22 May 99
Posts: 5204
Credit: 840,779,836
RAC: 2,768
United States
Message 1498132 - Posted: 1 Apr 2014, 7:47:17 UTC
Last modified: 1 Apr 2014, 8:38:45 UTC

Just thought I'd add that I'm running the Berkeley Download version of BOINC from my Home folder. Not the Repository version. To run that version, just move the downloaded file to your Home folder, right click, go to properties/permissions, and set the Execute bit. Then double click on the file and it will create a BOINC folder. In the BOINC folder, open a terminal window and type ldd (LDD) then a space. Then drag the boincmgr from the folder to the terminal window and hit Enter. In 12.4 you will probably be missing the libwx_gtk2u dependencies. Open the Synaptic Package Manager and paste in libwx. It should list a few libwx...2.8 packages. Install the main package, then run ldd again from the terminal. When all the dependencies are met, BOINC will work from the Home Folder. You'll just have to start it by double clicking on boincmgr in the Home/BOINC folder.
No More Permissions Issues...Ever!

Now if I could just get the stock AMD driver from the AMD site to work with BOINC. There isn't any trouble with the nVidia driver from the nVidia site.
ID: 1498132 · Report as offensive
Juha
Volunteer tester

Send message
Joined: 7 Mar 04
Posts: 388
Credit: 1,857,738
RAC: 0
Finland
Message 1498272 - Posted: 1 Apr 2014, 21:23:48 UTC - in response to Message 1498132.  
Last modified: 1 Apr 2014, 22:15:11 UTC

For x64:

cd /usr/lib/x86_64-linux-gnu/ && sudo ln -s libOpenCL.so.1 libOpenCL.so

edit: swapped target & link name
ID: 1498272 · Report as offensive
TBar
Volunteer tester

Send message
Joined: 22 May 99
Posts: 5204
Credit: 840,779,836
RAC: 2,768
United States
Message 1498303 - Posted: 1 Apr 2014, 22:36:57 UTC - in response to Message 1498272.  
Last modified: 1 Apr 2014, 23:05:55 UTC

For x64:

cd /usr/lib/x86_64-linux-gnu/ && sudo ln -s libOpenCL.so.1 libOpenCL.so

edit: swapped target & link name

I removed the repository driver and installed Catalyst 13.4. Now I'm back to;
Tue 01 Apr 2014 06:25:09 PM EDT |  | Data directory: /home/tbar/BOINC
Tue 01 Apr 2014 06:25:09 PM EDT |  | CAL: ATI GPU 0: ATI Radeon HD 5700/6750/6770 series (Juniper) (CAL version 1.4.1741, 1024MB, 820MB available, 2880 GFLOPS peak)
Tue 01 Apr 2014 06:25:09 PM EDT | SETI@home | Found app_info.xml; using anonymous platform
Tue 01 Apr 2014 06:25:09 PM EDT |  | App version needs OpenCL but GPU doesn't support it
Tue 01 Apr 2014 06:25:09 PM EDT |  | App version needs OpenCL but GPU doesn't support it


I'm looking at usr/lib/x86_64-linux-gnu and there isn't any file starting with libOpenCL.so in that folder. There are files named libOpenCL.so.1 in /usr/lib and usr/lib/i386-linux-gnu.

********************************** Success *******************************

Well, I'm not much for CL stuff. So, I opened Nautilus with gksu, went to usr/lib and made a link to libOpenCL.so.1. Then I copied the link to usr/lib/x86_64-linux-gnu, renamed it libOpenCL.so, now it works.

Tue 01 Apr 2014 07:00:12 PM EDT |  | Data directory: /home/tbar/BOINC
Tue 01 Apr 2014 07:00:12 PM EDT |  | CAL: ATI GPU 0: ATI Radeon HD 5700/6750/6770 series (Juniper) (CAL version 1.4.1741, 1024MB, 792MB available, 2880 GFLOPS peak)
Tue 01 Apr 2014 07:00:12 PM EDT |  | OpenCL: AMD/ATI GPU 0: ATI Radeon HD 5700/6750/6770 series (Juniper) (driver version 1124.2, device version OpenCL 1.2 AMD-APP (1124.2), 1024MB, 792MB available, 2880 GFLOPS peak)
Tue 01 Apr 2014 07:00:12 PM EDT |  | OpenCL CPU: Intel(R) Core(TM)2 Quad CPU    Q9400  @ 2.66GHz (OpenCL driver vendor: Advanced Micro Devices, Inc., driver version 1124.2 (sse2), device version OpenCL 1.2 AMD-APP (1124.2))


:-)
ID: 1498303 · Report as offensive
TBar
Volunteer tester

Send message
Joined: 22 May 99
Posts: 5204
Credit: 840,779,836
RAC: 2,768
United States
Message 1498408 - Posted: 2 Apr 2014, 3:14:11 UTC - in response to Message 1498303.  

Well, you know what's coming next.

Considering I used three different Ubuntu installations, and half a dozen different AMD drivers, I'd say it's safe to assume this isn't a quirk. Apparently, BOINC is looking for the AMD OpenCL Library in the wrong location. Maybe /usr/lib can be added to the list of where BOINC looks for the AMD OpenCL Library? It would also be helpful if the Berkeley BOINC download somehow satisfied the libwx dependency.

If these two issues were resolved more people looking for an XP replacement might consider the FREE Ubuntu system as a viable alternative for their BOINC Crunchers. The Price is right and not having to use an Installation Key is nice. Anti-Virus software? Ha Ha Ha....
ID: 1498408 · Report as offensive
Juha
Volunteer tester

Send message
Joined: 7 Mar 04
Posts: 388
Credit: 1,857,738
RAC: 0
Finland
Message 1498540 - Posted: 2 Apr 2014, 11:57:46 UTC - in response to Message 1498303.  

Ok, the Debian packages put the libraries to /usr/lib/x86_64-linux-gnu/ and ati-installer puts the libraries to /usr/lib. Oops.
ID: 1498540 · Report as offensive
TBar
Volunteer tester

Send message
Joined: 22 May 99
Posts: 5204
Credit: 840,779,836
RAC: 2,768
United States
Message 1498653 - Posted: 2 Apr 2014, 18:11:20 UTC - in response to Message 1498540.  

Ok, the Debian packages put the libraries to /usr/lib/x86_64-linux-gnu/ and ati-installer puts the libraries to /usr/lib. Oops.

I appear to be on a roll....NINE MONTHS!
ID: 1498653 · Report as offensive

Message boards : Number crunching : BOINC doesn't like the OpenCL in the AMD Proprietary Drivers for Ubuntu?


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.