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.
This commit is contained in:
Sergey Sharybin 2015-06-01 15:00:10 +05:00
parent 14251e8b45
commit 36ef6d1532
1 changed files with 4 additions and 0 deletions

View 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;