Can't load library libcudart

Message boards : Questions and problems : Can't load library libcudart
Message board moderation

To post messages, you must log in.

AuthorMessage
Rob

Send message
Joined: 13 Nov 08
Posts: 11
Australia
Message 21388 - Posted: 19 Nov 2008, 11:18:24 UTC

I installed BOINC 6.3.21 on my Kubuntu 8.10 machine a couple of weeks ago so I could run GPU grid.
Trouble is when Boinc starts it says in the message tab "can't load library libcudart" & "no coprocessors found"
I assume the first message means it can't find or load the libcudart.so file, which I also assume tells Boinc where to look for or how to identify graphics cards?
The libcudart.so file is in the Home>BOINC folder where the installer put it, & I've updated nvidia drivers to 177.8 & my card is a 8800GT, so in theory everything should work, but it doesn't :-(
I've tried reinstalling a couple of times to no avail & am now at a complete loss???
Anyone have any ideas ?
ID: 21388 · Report as offensive
Rob

Send message
Joined: 13 Nov 08
Posts: 11
Australia
Message 21398 - Posted: 19 Nov 2008, 21:01:30 UTC

1) do you still have /etc/default/boinc-client on your disk?

No, did a complete removal in Synaptic to get rid of all traces of the package manager installed version. Then deleted & reinstalled 6.3.21

are you still starting the client by having the OS run the daemon script (/etc/default/boinc-client) at boot time?

Nope

3) if not 2) then how are you starting the client?

I added /home/rob/BOINC/boinc to System settings>advanced tab>autostart, in the start menu.
I don't autostart Boinc manager, because I've found that for some reason version 6.3.21 takes up nearly a whole core of my cpu. So I just start it when I want to check on something & leave it closed the rest of the time.
ID: 21398 · Report as offensive
Rob

Send message
Joined: 13 Nov 08
Posts: 11
Australia
Message 21404 - Posted: 20 Nov 2008, 3:07:18 UTC

Well!, that was an interesting experiment.

Did you somehow tell autostart to start boinc with the /home/rob/BOINC directory as boinc's working directory?

Yes

What you should probably do is remove boinc from the autostart and run /home/rob/run_client in autostart. The run_client script does a cd to /home/rob/BOINC first before starting the client. Trouble is I am not quite sure how to run run_client in your autostart. Look at run_client's properties. If it's recognized as a shell script then maybe you can just set the excecutable permission and put a link to it in autostart. Or you may have to rename it and add the .sh extension to make Ubuntu recognize it as a shell script.

run_client was only a text file. I renamed it to run_client.sh & added it to autostart and removed boinc. No good :-( Boinc doesn't start.
Now even though I've changed everything back to how it was before, Kubuntu will only start in command line for some reason???.
I'm really starting to think theres something wrong with my install, because it won't shut down normally either, and hasn't since I upgraded to 8.10. It goes to a blank screen then hangs. I have to press the start button on the comp to get it to log out & shut down :-(
Another thing I forgot to mention. Having /home/rob/BOINC/boinc in Autostart is the only way I can get boinc client to start. It wont start when I click on Boinc manager, & wont start when I click on the actual boinc file. Which I find strange, because the link in autostart points to that file anyway???
ID: 21404 · Report as offensive
Rob

Send message
Joined: 13 Nov 08
Posts: 11
Australia
Message 21428 - Posted: 21 Nov 2008, 6:41:10 UTC

After reading your last post, I set boinc to no new work & was prepared to go back to Kubuntu 8.04 & boinc 5.10.45 from the repositories. But then I thought what the heck I'll give 6.4.1 a go first.
Tried to install it over the old version so I could keep all my current work. That didn't work. Ended up with 2 different boinc installations side by side somehow.
So restarted the old version & aborted & reported all work then deleted everything and reinstalled the new one.
Took a bit of stuffing around but I finally got it to work (manager wouldn't connect to client), can't remember how I did it. Think I had to start both manager & client in a terminal to make it work. Not game to shut it down & try again, but we're in the middle of storm season here so I'm sure I'll be forced to restart again sooner or later :-).
Anyway to get to the point. It now sees my graphics card & is happily crunching GPUGRID :-D
Thanks for your help & patience :-)
ID: 21428 · Report as offensive
JAM
Avatar

Send message
Joined: 15 Mar 09
Posts: 1
Guatemala
Message 23714 - Posted: 15 Mar 2009, 23:05:28 UTC

im having the same problem:

Sun Mar 15 16:48:41 2009 Can't load library libcudart

Im on MacBook Pro, Mac OS X 10.5.6
I have a NVIDIA GeForce 9600M GT (512MB)
BOINC Version: 6.6.15

I installed CUDA as nVidia's site says (http://www.nvidia.com/object/cuda_get.html)
I tried exporting the bin and the lib directories of cuda to the system path, i also copied the libcudart.dylib to the BOINC_data directory and nothing worked.

I spent 4 hours of searching en internet and nothing for Mac, and the answers for linux didnt worked on mac.

Help please

Thanks


ID: 23714 · Report as offensive
Conte Zero

Send message
Joined: 20 Apr 09
Posts: 2
Italy
Message 24424 - Posted: 20 Apr 2009, 19:21:15 UTC
Last modified: 20 Apr 2009, 19:29:48 UTC

Hi, I've encountered the same problem here, I'm using Ubuntu 9.04, 64bit, with an nVidia 8800GT as videocard (linux kernel 2.6.28_11, nVidia driver 180.44).
I've installed BOINC from the repositories (which was 6.2 if I remember correctly), then downloaded the 6.4.5 from GetDeb in .deb form (to keep track of version with apt mainly, used Intrepid 8.10 64bit version, as no Jaunty 9.04 set available) to be able to use CUDA to accelerate computation.
Then I've received the usual error "Unable to load libcudart". Searching the filesystem found one libcudart.so in /usr/lib/boinc-client (and by the way /dev/nvidia0 virtual device was present so I was sure driver-side CUDA was working).
Well, after some tinkering I found the silly reason why it didn't find it:
The library was in /usr/lib/boinc-client/, yet checking the working directory from "ps aux | grep boinc" revelead it was /var/lib/boinc-client/ which correctly contained temporary files and XMLs. Well I just copied /usr/lib/boinc-client/libcudart.so to /var/lib/boinc-client (as added later, just linking it is enough):

sudo cp /usr/lib/boinc-client/libcudart.so /var/lib/boinc-client
or
sudo ln -s /usr/lib/boinc-client/libcudart.so /var/lib/boinc-client

and then restarted the client using the init script:

sudo /etc/init.d/boinc-client stop && sudo /etc/init.d/boinc-client start

and voilĂ , everything is working correctly, it founds and loads the library and correctly uses the videocard for GPUGRID computing.
Hope this will help. ;)

Riccardo

P.S.: I've contacted the GetDeb packager to signal him the "missing" file so it can corrected from the start, hope this will solve a lot of troubles, at least on Ubuntu/Debian.

P.P.S.: Little edit and correction, copying the file is not needed (quite obvious actually), just linking it is enough, and I'm sure raises a lot less troubles for future automated updates correcting the problem.
ID: 24424 · Report as offensive
Conte Zero

Send message
Joined: 20 Apr 09
Posts: 2
Italy
Message 24425 - Posted: 20 Apr 2009, 19:23:43 UTC - in response to Message 23714.  

Actually they (Apple and Berkley) are waiting for NVIDIA to release a new set of driver with support for at least CUDA 2.1. Of course thius shouldn't be too far as Apple itself is pushing very much on OpenCL (for 10.6) and CUDA.
ID: 24425 · Report as offensive
Skip Da Shu
Avatar

Send message
Joined: 18 Mar 08
Posts: 38
United States
Message 26507 - Posted: 6 Aug 2009, 7:27:49 UTC - in response to Message 24424.  

...deleted...
sudo ln -s /usr/lib/boinc-client/libcudart.so /var/lib/boinc-client

and then restarted the client using the init script:

sudo /etc/init.d/boinc-client stop && sudo /etc/init.d/boinc-client start

and voilĂ , everything is working correctly, it founds and loads the library and correctly uses the videocard for GPUGRID computing.
Hope this will help. ;)

Riccardo

P.S.: I've contacted the GetDeb packager to signal him the "missing" file so it can corrected from the start, hope this will solve a lot of troubles, at least on Ubuntu/Debian.

P.P.S.: Little edit and correction, copying the file is not needed (quite obvious actually), just linking it is enough, and I'm sure raises a lot less troubles for future automated updates correcting the problem.


I had to find this post so many times I FINALLY copied the command to a .txt file and saved it with my general "boinc-setup-stuff". Thanx so much.

BTW, With the Debian/Ubuntu boinc-client script you can just do:
sudo /etc/init.d/boinc-client restart

This will do a STOP, sleep 1 and then a START.

Also the stop and start functions aren't a bad place to stick in a little code to turn up and down your vid card clock with boinc starting/stopping. Might be good for dedicated crunchers.
nvclock -n xxx -m yyy -f


- da shu @ HeliOS,
"A child's exposure to technology should never be predicated on an ability to afford it."
ID: 26507 · Report as offensive

Message boards : Questions and problems : Can't load library libcudart

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.