- client (linux): if don't find libcudart.so in the current dir,

look for it in the library search path.  Fixes #863

svn path=/trunk/boinc/; revision=17648
This commit is contained in:
David Anderson 2009-03-23 19:25:38 +00:00
parent ae90eb4865
commit 5e8237aa56
2 changed files with 15 additions and 0 deletions

View File

@ -3244,3 +3244,10 @@ David 23 Mar 2009
filesys.cpp
api/
boinc_api.cpp
David 23 Mar 2009
- client (linux): if don't find libcudart.so in the current dir,
look for it in the library search path. Fixes #863
lib/
coproc.cpp

View File

@ -194,7 +194,15 @@ string COPROC_CUDA::get(COPROCS& coprocs) {
#ifdef __APPLE__
cudalib = dlopen("/usr/local/cuda/lib/libcudart.dylib", RTLD_NOW);
#else
// libcudart.so is included with the BOINC install for linux,
// so look for it in the current dir.
//
cudalib = dlopen("./libcudart.so", RTLD_NOW);
if (!cudalib) {
// If that fails, look for it in the library search path
//
cudalib = dlopen("libcudart.so", RTLD_NOW);
}
#endif
if (!cudalib) {
return "Can't load library libcudart";