mirror of https://github.com/BOINC/boinc.git
- 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:
parent
ae90eb4865
commit
5e8237aa56
|
@ -3244,3 +3244,10 @@ David 23 Mar 2009
|
||||||
filesys.cpp
|
filesys.cpp
|
||||||
api/
|
api/
|
||||||
boinc_api.cpp
|
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
|
||||||
|
|
|
@ -194,7 +194,15 @@ string COPROC_CUDA::get(COPROCS& coprocs) {
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
cudalib = dlopen("/usr/local/cuda/lib/libcudart.dylib", RTLD_NOW);
|
cudalib = dlopen("/usr/local/cuda/lib/libcudart.dylib", RTLD_NOW);
|
||||||
#else
|
#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);
|
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
|
#endif
|
||||||
if (!cudalib) {
|
if (!cudalib) {
|
||||||
return "Can't load library libcudart";
|
return "Can't load library libcudart";
|
||||||
|
|
Loading…
Reference in New Issue