Index  | Recent Threads  | Unanswered Threads  | Who's Active  | Guidelines  | Search
 

Quick Go »
No member browsing this thread
Thread Status: Active
Total posts in this thread: 20
Posts: 20   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 3157 times and has 19 replies Next Thread
jay_Orlando
Senior Cruncher
USA
Joined: Jan 4, 2006
Post Count: 181
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
confused [** SOLVED **] card not recognized - but have libOpenCL.so

Greetings.

I'm still trying to get boinc to recognize my GPU card on a linux system.

Before I go too far, I would like to ask someone crunching, on linux, with
an ATI Radeon HD 7700 or 7800 or 7900 series card, just which
driver they installed and are using..

There *does* exist on my computer:
/usr/lib/x86_64-linux-gnu/libOpenCL.so

and still, a no-go for BOINC.
(is this a simple path problem??)

Tue 19 Mar 2013 10:59:34 PM EDT | | Starting BOINC client version 7.0.27 for x86_64-pc-linux-gnu
Tue 19 Mar 2013 10:59:34 PM EDT | | Libraries: libcurl/7.26.0 OpenSSL/1.0.1e zlib/1.2.7 libidn/1.25 libssh2/1.4.2 librtmp/2.3
Tue 19 Mar 2013 10:59:34 PM EDT | | Data directory: /var/lib/boinc-client
Tue 19 Mar 2013 10:59:34 PM EDT | | Processor: 8 AuthenticAMD AMD FX(tm)-8150 Eight-Core Processor [Family 21 Model 1 Stepping 2]
Tue 19 Mar 2013 10:59:34 PM EDT | | Processor: 2.00 MB cache
Tue 19 Mar 2013 10:59:34 PM EDT | | Processor features: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc extd_apicid aperfmperf pni pclmulqdq monitor ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 nodeid_msr topoext perfctr_core arat cpb hw_pstate npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold
Tue 19 Mar 2013 10:59:34 PM EDT | | OS: Linux: 3.2.0-4-amd64
Tue 19 Mar 2013 10:59:34 PM EDT | | Memory: 7.73 GB physical, 8.04 GB virtual
Tue 19 Mar 2013 10:59:34 PM EDT | | Disk: 3.84 GB total, 3.28 GB free
Tue 19 Mar 2013 10:59:34 PM EDT | | Local time is UTC -4 hours
Tue 19 Mar 2013 10:59:34 PM EDT | | No usable GPUs found

Don't worry about the disk space above, I had put the boinc data directory on a separate partition.

The current installation in use is Debian Wheezy - testing.
( I also tried ubuntu, Lubuntu 12.10, Kubuntu 12.10, UberStudent (Ubuntu xfce desktop) .)

Packages installed:

i amd-libopencl1 - AMD OpenCL library
i amd-opencl-dev - AMD OpenCL development files
i A amd-opencl-icd - AMD OpenCL ICD
i A opencl-headers - OpenCL (Open Computing Language) header files
-- and --
i A libgl1-mesa-dev - free implementation of the OpenGL API -- G
i A libgl1-mesa-dri - free implementation of the OpenGL API -- D
i A libgl1-mesa-glx - free implementation of the OpenGL API -- G
i A libglapi-mesa - free implementation of the GL API -- share
i A libglu1-mesa - Mesa OpenGL utility library (GLU)
i mesa-common-dev - Developer documentation for Mesa
--and--
... lots of xorg
i A xserver-xorg-video-ati X.Org X server -- AMD/ATI display driver w
--- more xorg
i A xserver-xorg-video-r128 - X.Org X server -- ATI r128 display driver
i A xserver-xorg-video-radeon - X.Org X server -- AMD/ATI Radeon display d
--- yes, more.
i A xserver-xorg-video-vesa - X.Org X server -- VESA display driver

There was a note in a READme of the SDK from the AMD website
that said that of that version, the SDK no longer had the run-time libraries.
( and for linux, the "catalyst" video driver is fglrx - without openCL.)
So I went back a version and matched up the fglrx driver to match.
BUT - I couldn't get them to compile, even hacking in and adding #includes and links in /usr/include ...
So I relied on the non-free (restricted) Debian packages.

Things to share:
http://support.amd.com/us/gpudownload/linux/Pages/radeon_linux.aspx -- Current AMD driver for Linux.
http://developer.amd.com/tools/heterogeneous-...essing-app-sdk/downloads/ -- beta OpenCL
http://developer.amd.com/tools/heterogeneous-...nts-driver-compatibility/ -- sdk to ATI Conformity
http://developer.amd.com/tools/heterogeneous-...essing-app-sdk/downloads/ conformity needed bettwen openCL and drivers

Driver Conformance  (Copy from above)
Download AMD Catalyst Drivers
AMD APP SDK v2.8 ----- AMD Catalyst 12.10 (9.002)
AMD APP SDK v2.7 ----- AMD Catalyst 12.4 (8.961)
AMD APP SDK v2.6 ----- AMD Catalyst 11.12 (8.92)
AMD APP SDK v2.5 ----- AMD Catalyst 11.7 (8.872)
AMD APP SDK v2.4 ----- ATI Catalyst 11.4 Update Driver (8.841)
AMD APP SDK v2.3 ----- ATI Catalyst 10.12 (8.801)
ATI Stream SDK v2.2 ---- ATI Catalyst 10.7 Update Driver for OpenCL™ 1.1 Support (8.753.1)
ATI Stream SDK v2.1 ---- ATI Catalyst 10.4 (8.723)
ATI Stream SDK v2.01 -- ATI Catalyst 10.2 (8.701)
ATI Stream SDK v2.0 ---- ATI Catalyst 9.12 (8.682)

MANY thanks to Vincent Danjean who wrote a wonderful article explaining other inter-dependencies at
http://lists.debian.org/debian-devel/2012/06/msg01108.html
Slightly old, but a great, in-depth explanation.
... and why I got so many seg faults...

One more thank you - to the builders of the Debian Packages - who figure out the dependencies,
and the 'breaks' and all that goes into a package.

So. Anyone with:
Radeon HD 7700 or later,
Running Linux (preferably Debian),
WHICH package(s) did you use???
A package name, linux version, lsmod and modinfo would be ... awesome.

I might be ready for some Vogon poetry now.

Many thanks,
Jay E.

PS,
For a sanity test, I put the video card in a windows-Vista box; added the Catalyst
driver from the AMD website; and it crunched HCC GPU code like a champ.
[edited- cleaned up cut & paste errors.]
----------------------------------------

----------------------------------------
[Edit 2 times, last edit by jay_Orlando at Mar 23, 2013 4:18:15 AM]
[Mar 20, 2013 4:46:28 AM]   Link   Report threatening or abusive post: please login first  Go to top 
captainjack
Advanced Cruncher
Joined: Apr 14, 2008
Post Count: 144
Status: Recently Active
Project Badges:
Reply to this Post  Reply with Quote 
Re: card not recognized - but have libOpenCL.so

Hi Jay,

Don't know anything about Wheezy, but if you want to switch back to Ubuntu you can try this. I have one PC running Ubuntu 12.10 and one PC running 13.04 and this approach works on both using AMD 6770 cards.

After you install Ubuntu, on the Unity screen open up System Settings (icon looks like a wrench over top of a gear). Then open up "Software and Updates". When that opens, there is a tab titled "Additional Drivers".

The Additional Drivers tab lists 3 choices for drivers.

The first one is X.Org X server. That is the driver from Ubuntu.

There is one that says "Using Video driver for the AMD graphics accelerators from fglrx (proprietary)". That is the generally available driver from AMD.

There is one that says "Using Video driver for the AMD graphics accelerators from fglrx-updates (proprietary)". That is a beta driver from AMD.

If you want to run GPU tasks you should choose either of the fglrx drivers depending on whether you want to run a generally available driver or a beta driver.
After you click on the radio button for the choice you want, click on "Apply Changes" button close to the bottom of the page.

On Ubuntu 13.04, I am using the beta drivers. In the lower right hand corner of the screen there is a watermark that says "AMD Unsupported hardware" but the gpu tasks will still work.

Hope that helps.
[Mar 21, 2013 2:46:15 AM]   Link   Report threatening or abusive post: please login first  Go to top 
jay_Orlando
Senior Cruncher
USA
Joined: Jan 4, 2006
Post Count: 181
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: card not recognized - but have libOpenCL.so

Hey there!
Thank you!

I'll let the current CPU tasks finish and I'll start over and install Ubuntu tomorrow or this weekend.
I had tried 12.04 LTS and 12.10. just didn't have the right drivers - or, I believed the posts that said the openCL wasn't in the video driver..

Just for grins, could you, please run a test to find just where your open library code is?

this should find it
sudo find / -type f -name libOpenCL.so -print

If that doesn't work, maybe try
sudo find / -type f -print | grep -i libOpenCL

I'm hoping it was something simple like the upper/lowercase letters on the name or a slightly different path.

I have done a git-clone of the BOINC software to look for its bindings as well.

THANKS again!!
Jay
----------------------------------------

[Mar 22, 2013 2:36:23 AM]   Link   Report threatening or abusive post: please login first  Go to top 
kateiacy
Veteran Cruncher
USA
Joined: Jan 23, 2010
Post Count: 1027
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: card not recognized - but have libOpenCL.so

Jay,
I run HCC on an AMD 7750 under Xubuntu 12.10. I did not need the AMD SDK. I did need "fglrx" from "Additional Drivers" in a Ubuntu version not earlier than 12.10.

Also note that, when you first boot, BOINC will not see the GPU. (You will get the "no usable GPUs" message that you are seeing in your log.) You must manually restart BOINC after each reboot.

If you have the up-to-date fglrx driver, BOINC should recognize your card and its OpenCL capabilities when you have restarted BOINC.

Here's what I get when I search for libOpenCL:
/usr/lib/libOpenCL.so.1
/usr/lib/fglrx/libOpenCL.so.1
/usr/lib32/libOpenCL.so.1
/usr/lib32/fglrx/libOpenCL.so.1

Hope this helps.
Kate
----------------------------------------

[Mar 22, 2013 2:55:49 AM]   Link   Report threatening or abusive post: please login first  Go to top 
jay_Orlando
Senior Cruncher
USA
Joined: Jan 4, 2006
Post Count: 181
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: card not recognized - but have libOpenCL.so

Here is what I tested with Deban Wheezy - testing today...
Bottom line Boinc (7.0.27) did not 'see' the GPU.

Order in which packages install or re-installed.
--------------------------------------------------------------------
(( Be sure to get image, headers, and tools compatible.))

build-essential_11.5_amd64.deb
dkms_2.2.0.3-1.2_all.deb
fglrx-modules-dkms_12-6+point-1_amd64.deb
# tools to install mods to kernel

libxvbaw-dev_12-6+point-1_amd64.deb
#Establish a base, working driver that the others may overwrite.

libfglrx-amdxvba1_12-6+point-1_amd64.deb
fglrx-glx_12-6+point-1_amd64.deb
libgl1-fglrx-glx_12-6+point-1_amd64.deb
# I think Catalyst and/or fglrx needs this,
#but do it before, in case it gets overwritten.

fglrx-driver_12-6+point-1_amd64.deb
fglrx-source_12-6+point-1_amd64.deb
libfglrx_12-6+point-1_amd64.deb
libfglrx-ia32_12-6+point-1_amd64.deb
# the fglrx drivers

fglrx-atieventsd_12-6+point-1_amd64.deb
fglrx-control_12-6+point-1_amd64.deb
#controllers

amd-clinfo_12-6+point-1_amd64.deb
amd-libopencl1_12-6+point-1_amd64.deb
amd-opencl-dev_12-6+point-1_amd64.deb
amd-opencl-icd_12-6+point-1_amd64.deb
#opencl

The AMD Catalyst Control Center is on the desktop and works.

The shared object is in /usr/lib/x86_64-linux-gnu/
# ls -al /usr/lib/x86_64-linux-gnu/*Open*
/usr/lib/x86_64-linux-gnu/libOpenCL.so -> libOpenCL.so.1
/usr/lib/x86_64-linux-gnu/libOpenCL.so.1

I am looking forward to retrying Ubuntu
with just what Jack said :-)
Jay
----------------------------------------

[Mar 22, 2013 3:34:35 AM]   Link   Report threatening or abusive post: please login first  Go to top 
captainjack
Advanced Cruncher
Joined: Apr 14, 2008
Post Count: 144
Status: Recently Active
Project Badges:
Reply to this Post  Reply with Quote 
Re: card not recognized - but have libOpenCL.so

The problem that KateJacy describes is sometimes caused when BOINC runs as a daemon and starts up before the GPU drivers have time to load.

One option to cure this problem is to tell the BOINC startup script to take a short nap before it starts BOINC to running. A quick search using my favorite search engine found this:

Edit the BOINC startup script by typing the following command in terminal

sudo gedit /etc/init.d/boinc-client


Then insert a sleep command at the following location in the script

start()
{
log_begin_msg "Starting $DESC: $NAME"
if is_running; then
log_progress_msg "already running"
else
sleep 6
start-stop-daemon --start --quiet --background --pidfile $PIDFILE \
--make-pidfile --user $BOINC_USER --chuid $BOINC_USER \
--chdir $BOINC_DIR --exec $BOINC_CLIENT -- $BOINC_OPTS
fi
log_end_msg 0

if [ "$SCHEDULE" = "1" ]; then
schedule
fi
}


You can run some tests to see if sleep 6 (seconds) is long enough. When I was testing this, I had to use a longer delay for the sleep setting.

I have switched to using the Berkeley installer and manually start BOINC so I am no longer using the method above. So the code in the startup script might not look exactly like the example above but it should get you close. An internet search might help also.

Hope that helps.
[Mar 22, 2013 3:21:12 PM]   Link   Report threatening or abusive post: please login first  Go to top 
kateiacy
Veteran Cruncher
USA
Joined: Jan 23, 2010
Post Count: 1027
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: card not recognized - but have libOpenCL.so

captainjack, did you ever get the "sleep 6" to work with AMD cards and BOINC running as a demon? It used to work for me with Nvidia cards (doesn't anymore under more recent BOINC versions) but I never got it to work with AMD, no matter how long I set the sleep interval to.
----------------------------------------

[Mar 22, 2013 9:46:56 PM]   Link   Report threatening or abusive post: please login first  Go to top 
Former Member
Cruncher
Joined: May 22, 2018
Post Count: 0
Status: Offline
Reply to this Post  Reply with Quote 
Re: card not recognized - but have libOpenCL.so

Upstart might be the solution tool (Ubuntu uses it): http://upstart.ubuntu.com/ Noticed during many shutdowns/reboots that the BOINC service is stopped rather late in the process, something determining the order, because it's always going down in the exact same sequence.
[Mar 22, 2013 10:12:28 PM]   Link   Report threatening or abusive post: please login first  Go to top 
captainjack
Advanced Cruncher
Joined: Apr 14, 2008
Post Count: 144
Status: Recently Active
Project Badges:
Reply to this Post  Reply with Quote 
Re: card not recognized - but have libOpenCL.so

katejacy,

It has been several months since I tried this. IIRC, I did get it to work with an AMD card, but had to use something like "sleep 120" (2 minutes).

If you can't get it to work let me know. I'll reconfigure on of my Ubuntu boxes tomorrow and give it another try. Need to drain the queue before I start any changes.
[Mar 22, 2013 10:32:59 PM]   Link   Report threatening or abusive post: please login first  Go to top 
kateiacy
Veteran Cruncher
USA
Joined: Jan 23, 2010
Post Count: 1027
Status: Offline
Project Badges:
Reply to this Post  Reply with Quote 
Re: card not recognized - but have libOpenCL.so

This link is out of date now, but it confirmed that there was no alternative to restarting BOINC manually for ATI cards:
http://boinc.berkeley.edu/dev/forum_thread.php?id=6307&sort=5
----------------------------------------

[Mar 23, 2013 12:28:31 AM]   Link   Report threatening or abusive post: please login first  Go to top 
Posts: 20   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread