Posts by Conte Zero

1) Message boards : Questions and problems : Can't load library libcudart (Message 24425)
Posted 20 Apr 2009 by Conte Zero
Post:
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.
2) Message boards : Questions and problems : Can't load library libcudart (Message 24424)
Posted 20 Apr 2009 by Conte Zero
Post:
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.




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.