[Bf-blender-cvs] [2c30fd83f1] master: Cycles: Additionally report all OpenCL cflags

Sergey Sharybin noreply at git.blender.org
Wed Feb 22 10:06:05 CET 2017


Commit: 2c30fd83f1513b4e9f146024501b15bd31ee4804
Author: Sergey Sharybin
Date:   Wed Feb 22 10:04:13 2017 +0100
Branches: master
https://developer.blender.org/rB2c30fd83f1513b4e9f146024501b15bd31ee4804

Cycles: Additionally report all OpenCL cflags

This way we can control exact spaces and such added to the cflags
which is crucial to troubleshoot certain drivers.

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

M	intern/cycles/device/opencl/opencl_util.cpp

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

diff --git a/intern/cycles/device/opencl/opencl_util.cpp b/intern/cycles/device/opencl/opencl_util.cpp
index 82e1640e50..c7760e075c 100644
--- a/intern/cycles/device/opencl/opencl_util.cpp
+++ b/intern/cycles/device/opencl/opencl_util.cpp
@@ -309,6 +309,8 @@ bool OpenCLDeviceBase::OpenCLProgram::build_kernel(const string *debug_src)
 	string build_options;
 	build_options = device->kernel_build_options(debug_src) + kernel_build_options;
 
+	VLOG(1) << "Build options passed to clBuildProgram: '"
+	        << build_options << "'.";
 	cl_int ciErr = clBuildProgram(program, 0, NULL, build_options.c_str(), NULL, NULL);
 
 	/* show warnings even if build is successful */




More information about the Bf-blender-cvs mailing list