Commit: 29dc04d9bb59f557f5e39f458df2ebc6cb53090a
Author: Sergey Sharybin
Date:   Thu Aug 4 12:14:43 2016 +0200
Branches: master
https://developer.blender.org/rB29dc04d9bb59f557f5e39f458df2ebc6cb53090a

Cycles: Report human-readable string of compilation error code

It is possible that compilation will fail without giving anything in the
log buffer. For this cases giving a tip about error code will be really
handy.

Patch by @Ilia, thanks!

===================================================================

M       intern/cycles/device/device_opencl.cpp

===================================================================

diff --git a/intern/cycles/device/device_opencl.cpp 
b/intern/cycles/device/device_opencl.cpp
index 50490f3..5c05aeb 100644
--- a/intern/cycles/device/device_opencl.cpp
+++ b/intern/cycles/device/device_opencl.cpp
@@ -875,6 +875,7 @@ public:
 
                if(ciErr != CL_SUCCESS) {
                        opencl_error("OpenCL build failed: errors in console");
+                       fprintf(stderr, "Build error: %s\n", 
clewErrorString(ciErr));
                        return false;
                }

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to