[Bf-blender-cvs] [3dc86f5] master: Cycles: Add debug print about CLEW initialization status
Sergey Sharybin
noreply at git.blender.org
Tue Jul 7 14:38:03 CEST 2015
Commit: 3dc86f586cf75dc34dad45d41e421d252a39beb4
Author: Sergey Sharybin
Date: Tue Jul 7 14:37:12 2015 +0200
Branches: master
https://developer.blender.org/rB3dc86f586cf75dc34dad45d41e421d252a39beb4
Cycles: Add debug print about CLEW initialization status
===================================================================
M intern/cycles/device/device_opencl.cpp
===================================================================
diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp
index 476bda3..60522c6 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;
}
More information about the Bf-blender-cvs
mailing list