Problems with OpenCL in Ubuntu using open source driver mesa

Message boards : BOINC client : Problems with OpenCL in Ubuntu using open source driver mesa
Message board moderation

To post messages, you must log in.

AuthorMessage
javier

Send message
Joined: 12 Jan 10
Posts: 25
Spain
Message 80590 - Posted: 30 Aug 2017, 17:22:27 UTC

Hello again,

i have 2 different computers, one using AMD GPU ant the other using nVidia

Both of them are running open source drivers, via mesa. And i have installed mesa-opencl-icd package, so that BOINC detects GPU as opencl capable

But, *every* task i start ends with "computing error"!

What am i doing wrong?

BOINC version is 7.6.33, Ubuntu 16.04 and mesa 17.0.7

Thanks in advance!
ID: 80590 · Report as offensive     Reply Quote
javier

Send message
Joined: 12 Jan 10
Posts: 25
Spain
Message 80592 - Posted: 30 Aug 2017, 17:23:59 UTC - in response to Message 80590.  

with *every task* i mean, *every task meant to be computed via OpenCL*, not regular CPU tasks
ID: 80592 · Report as offensive     Reply Quote
javier

Send message
Joined: 12 Jan 10
Posts: 25
Spain
Message 80599 - Posted: 30 Aug 2017, 17:38:03 UTC - in response to Message 80592.  

oh, and also, my GPUs are:

AMD: A6-5200 Quad-core with HD 8400

nVidia: GeForce GT 630
ID: 80599 · Report as offensive     Reply Quote
Richard Haselgrove
Volunteer moderator
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 2412
United Kingdom
Message 80603 - Posted: 30 Aug 2017, 17:47:06 UTC - in response to Message 80599.  

And your tasks are coming from - which project?
ID: 80603 · Report as offensive     Reply Quote
javier

Send message
Joined: 12 Jan 10
Posts: 25
Spain
Message 80604 - Posted: 30 Aug 2017, 17:52:27 UTC - in response to Message 80603.  

several,

seti@home, asteroids@home, Einstein@home.....
ID: 80604 · Report as offensive     Reply Quote
Richard Haselgrove
Volunteer moderator
Volunteer tester
Help desk expert

Send message
Joined: 5 Oct 06
Posts: 2412
United Kingdom
Message 80607 - Posted: 30 Aug 2017, 18:02:34 UTC - in response to Message 80604.  

From that list, probably the best Linux GPU support community is at Einstein. Try BRP6-OPENCL-ATI WITH LINUX MESA OPENCL
ID: 80607 · Report as offensive     Reply Quote
javier

Send message
Joined: 12 Jan 10
Posts: 25
Spain
Message 80611 - Posted: 30 Aug 2017, 19:11:12 UTC - in response to Message 80607.  

just posted.... Will update with news, if any....

thank you
ID: 80611 · Report as offensive     Reply Quote
ChristianB
Volunteer moderator
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 305
Germany
Message 80627 - Posted: 31 Aug 2017, 15:35:15 UTC

I've seen you already got some help in the EaH forums. The problem is that the Mesa driver seems to either not support OpenCL fully or has a bug that is triggered by the science apps. From the logs I've seen the process exits with signal 6 (SIGABRT) abort. From the backtrace another user posted it seems the driver fails when the function "clGetPlatformIDs()" is called.
ID: 80627 · Report as offensive     Reply Quote
javier

Send message
Joined: 12 Jan 10
Posts: 25
Spain
Message 80645 - Posted: 1 Sep 2017, 8:58:04 UTC - in response to Message 80627.  

well, i see OpenCL support is 1.1.... maybe its not enough...

And, it seems OpenCL support in Mesa is not fully implemented... maybe thats another point.... https://dri.freedesktop.org/wiki/GalliumCompute/
ID: 80645 · Report as offensive     Reply Quote
ChristianB
Volunteer moderator
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 305
Germany
Message 80649 - Posted: 1 Sep 2017, 12:47:33 UTC

There is a lot TODO in this list. The BRP4 opencl app is available (https://einsteinathome.org/de/application-source-code-and-license)and can be used for testing if needed. I can provide testdata in case you want to escalate this to the mesa developers. EaH uses the original ATI/Nvidia drivers as a reference and there are no problems there.
ID: 80649 · Report as offensive     Reply Quote
javier

Send message
Joined: 12 Jan 10
Posts: 25
Spain
Message 80651 - Posted: 1 Sep 2017, 13:23:32 UTC - in response to Message 80649.  
Last modified: 1 Sep 2017, 13:25:14 UTC

as "original ATI driver", you mean propietary ones?

The point is that, propietary ATI drivers:

1) offers much worse performance under Ubuntu, and
2) they are not available anymore for the X version provided in newest Ubuntu versions
ID: 80651 · Report as offensive     Reply Quote
javier

Send message
Joined: 12 Jan 10
Posts: 25
Spain
Message 80661 - Posted: 1 Sep 2017, 20:05:52 UTC - in response to Message 80651.  

what do you think about using bleed-edge Mesa from here?

https://launchpad.net/~oibaf/+archive/ubuntu/graphics-drivers

May that help?
ID: 80661 · Report as offensive     Reply Quote
ChristianB
Volunteer moderator
Volunteer developer
Volunteer tester

Send message
Joined: 4 Jul 12
Posts: 305
Germany
Message 80675 - Posted: 2 Sep 2017, 7:29:23 UTC

Yes, I mean the proprietary ones. Yes, we are aware of the shortcommings of those on Linux. But they were there first and are now the reference. As I understand it the mesa driver is not yet feature complete and is not guaranteed to work with all applications. I don't know exactly what is wrong but using bleeding edge wan't make it worse I guess. This is not something the app developer can fix this is something the driver developer has to do.
ID: 80675 · Report as offensive     Reply Quote
javier

Send message
Joined: 12 Jan 10
Posts: 25
Spain
Message 80715 - Posted: 3 Sep 2017, 13:17:30 UTC - in response to Message 80649.  

I can provide testdata in case you want to escalate this to the mesa developers. EaH uses the original ATI/Nvidia drivers as a reference and there are no problems there.


I´d love to! i don´t know exasctly how can i help, but i´ll do my best. And yes, there are no problems with propietary drivers.
ID: 80715 · Report as offensive     Reply Quote

Message boards : BOINC client : Problems with OpenCL in Ubuntu using open source driver mesa

Copyright © 2017 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.