1
1

Cleanup: Unused but set variable in Cycles Metal profiler

This commit is contained in:
2022-06-09 10:20:04 +02:00
parent a91c8d8efa
commit 0fddff027e

View File

@@ -121,11 +121,9 @@ MetalDeviceQueue::~MetalDeviceQueue()
double total_time = 0.0;
/* Show per-kernel timings, if gathered (see CYCLES_METAL_PROFILING). */
int64_t total_work_size = 0;
int64_t num_dispatches = 0;
for (auto &stat : timing_stats) {
total_time += stat.total_time;
total_work_size += stat.total_work_size;
num_dispatches += stat.num_dispatches;
}