diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-07-07 15:37:12 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-07-07 15:37:12 +0300 |
commit | 3dc86f586cf75dc34dad45d41e421d252a39beb4 (patch) | |
tree | 344f7da3fd28472456d3de0f2c1fc68048993367 /intern/cycles/device/device_opencl.cpp | |
parent | 37539962fe0da09bb66af43aeb642cb03561c717 (diff) |
Cycles: Add debug print about CLEW initialization status
Diffstat (limited to 'intern/cycles/device/device_opencl.cpp')
-rw-r--r-- | intern/cycles/device/device_opencl.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp index 476bda34a17..60522c61359 100644 --- a/intern/cycles/device/device_opencl.cpp +++ b/intern/cycles/device/device_opencl.cpp @@ -3424,7 +3424,17 @@ bool device_opencl_init(void) initialized = true; - result = clewInit() == CLEW_SUCCESS; + int clew_result = clewInit(); + if(clew_result == CLEW_SUCCESS) { + VLOG(1) << "CLEW initialization succeeded."; + result = true; + } + else { + VLOG(1) << "CLEW initialization failed: " + << ((clew_result == CLEW_ERROR_ATEXIT_FAILED) + ? "Error setting up atexit() handler" + : "Error opening the library"); + } return result; } |