diff options
Diffstat (limited to 'intern/cycles/util')
-rw-r--r-- | intern/cycles/util/util_cuda.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/intern/cycles/util/util_cuda.cpp b/intern/cycles/util/util_cuda.cpp index fdf3d664a11..f81a11ba9da 100644 --- a/intern/cycles/util/util_cuda.cpp +++ b/intern/cycles/util/util_cuda.cpp @@ -147,6 +147,8 @@ tcuCtxSetCurrent *cuCtxSetCurrent; CCL_NAMESPACE_BEGIN /* utility macros */ +#define CUDA_LIBRARY_FIND_CHECKED(name) \ + name = (t##name*)dynamic_library_find(lib, #name); #define CUDA_LIBRARY_FIND(name) \ name = (t##name*)dynamic_library_find(lib, #name); \ @@ -188,7 +190,7 @@ bool cuLibraryInit() /* detect driver version */ int driver_version = 1000; - CUDA_LIBRARY_FIND(cuDriverGetVersion); + CUDA_LIBRARY_FIND_CHECKED(cuDriverGetVersion); if(cuDriverGetVersion) cuDriverGetVersion(&driver_version); |