[Bf-blender-cvs] [6dc10587603] cycles-x: Cycles X: Increase verbosity level for kernel timings

Sergey Sharybin noreply at git.blender.org
Wed May 19 19:18:18 CEST 2021


Commit: 6dc1058760322d97bb53cbf3b38d249d155f029f
Author: Sergey Sharybin
Date:   Wed May 19 16:02:41 2021 +0200
Branches: cycles-x
https://developer.blender.org/rB6dc1058760322d97bb53cbf3b38d249d155f029f

Cycles X: Increase verbosity level for kernel timings

Allows to more easily access overall kernel time execution without too
much flood in the terminal which could affect overall timing.

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

M	intern/cycles/device/device_queue.cpp

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

diff --git a/intern/cycles/device/device_queue.cpp b/intern/cycles/device/device_queue.cpp
index 62b853fdfd5..a89ba68d62c 100644
--- a/intern/cycles/device/device_queue.cpp
+++ b/intern/cycles/device/device_queue.cpp
@@ -64,7 +64,7 @@ void DeviceQueue::debug_init_execution()
 void DeviceQueue::debug_enqueue(DeviceKernel kernel, const int work_size)
 {
   if (VLOG_IS_ON(3)) {
-    VLOG(3) << "GPU queue launch " << device_kernel_as_string(kernel) << ", work_size "
+    VLOG(4) << "GPU queue launch " << device_kernel_as_string(kernel) << ", work_size "
             << work_size;
     last_kernels_enqueued_ |= (uint64_t(1) << (uint64_t)kernel);
   }
@@ -75,7 +75,7 @@ void DeviceQueue::debug_synchronize()
   if (VLOG_IS_ON(3)) {
     const double new_time = time_dt();
     const double elapsed_time = new_time - last_sync_time_;
-    VLOG(3) << "GPU queue synchronize, elapsed " << std::setw(10) << elapsed_time << "s";
+    VLOG(4) << "GPU queue synchronize, elapsed " << std::setw(10) << elapsed_time << "s";
 
     stats_kernel_time_[last_kernels_enqueued_] += elapsed_time;



More information about the Bf-blender-cvs mailing list