diff --git a/checkin_notes b/checkin_notes index 1aa0de2599..1306b14db4 100644 --- a/checkin_notes +++ b/checkin_notes @@ -4728,3 +4728,9 @@ David 5 June 2008 util.inc util_basics.inc (new) xml.inc + +David 6 June 2008 + - client (Win) look for CUDA as nvcuda.dll + + lib/ + coproc.C diff --git a/lib/coproc.C b/lib/coproc.C index 97dca3e394..a4e1adb290 100644 --- a/lib/coproc.C +++ b/lib/coproc.C @@ -102,6 +102,7 @@ void COPROC_CUDA::get(COPROCS& coprocs) { int (__stdcall* __cudaGetDeviceProperties) ( cudaDeviceProp*, int ); int bufsize=256; char buf[256], path[256]; +#if 0 HKEY key; retval = RegOpenKeyEx( HKEY_LOCAL_MACHINE, @@ -115,8 +116,10 @@ void COPROC_CUDA::get(COPROCS& coprocs) { RegCloseKey(key); if (retval != ERROR_SUCCESS) return; sprintf(path, "%s\\bin\\cudart.dll", buf); - HMODULE cudalib = LoadLibrary(path); +#else + HMODULE cudalib = LoadLibrary("nvcuda.dll"); +#endif __cudaGetDeviceCount = (int(__stdcall*)(int*)) GetProcAddress(cudalib, "cudaGetDeviceCount"); if(!__cudaGetDeviceCount) return; __cudaGetDeviceProperties = (int(__stdcall*)(cudaDeviceProp*, int)) GetProcAddress( cudalib, "cudaGetDeviceProperties" );