[Bf-blender-cvs] [36ef6d1] master: Cycles: Report build flags used for the OpenCL kernel compilation

Sergey Sharybin noreply at git.blender.org
Mon Jun 1 16:50:07 CEST 2015


Commit: 36ef6d1532293a29701e658590c76f06af1f00a8
Author: Sergey Sharybin
Date:   Mon Jun 1 15:00:10 2015 +0500
Branches: master
https://developer.blender.org/rB36ef6d1532293a29701e658590c76f06af1f00a8

Cycles: Report build flags used for the OpenCL kernel compilation

For now it's reported to the stdout, matching to the CUDA behavior.
In the future we can hide this into GLog logging once the kernels
are considered all stable and so.

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

M	intern/cycles/device/device_opencl.cpp

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

diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp
index 72224d3..4a91802 100644
--- a/intern/cycles/device/device_opencl.cpp
+++ b/intern/cycles/device/device_opencl.cpp
@@ -676,6 +676,10 @@ public:
 
 		double starttime = time_dt();
 		printf("Compiling OpenCL kernel ...\n");
+		/* TODO(sergey): Report which kernel is being compiled
+		 * as well (megakernel or which of split kernels etc..).
+		 */
+		printf("Build flags: %s\n", custom_kernel_build_options.c_str());
 
 		if(!build_kernel(kernel_program, custom_kernel_build_options, debug_src))
 			return false;




More information about the Bf-blender-cvs mailing list