Cycles: Report build flags used for the OpenCL kernel compilation
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 1 Jun 2015 10:00:10 +0000 (15:00 +0500)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 1 Jun 2015 14:49:52 +0000 (19:49 +0500)
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.

intern/cycles/device/device_opencl.cpp

index 72224d3f02715f1315d82c44e414731179daf401..4a9180212504a6a1117e0d949319ad1514544b6f 100644 (file)
@@ -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;