diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-06-01 13:00:10 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-06-01 17:49:52 +0300 |
commit | 36ef6d1532293a29701e658590c76f06af1f00a8 (patch) | |
tree | c412cdad409bb0f6d19e3433b61f0723327c0e54 /intern | |
parent | 14251e8b4515a134d5f5c9617215d8f95a30724e (diff) |
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.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/device/device_opencl.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/cycles/device/device_opencl.cpp b/intern/cycles/device/device_opencl.cpp index 72224d3f027..4a918021250 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; |