From 97c7c0abf5083c621713474a760fc0f07f5c7da4 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 21 Jan 2019 10:51:19 +0100 Subject: Cleanup: add clarifying comments for recent NUMA fixes. --- intern/cycles/util/util_task.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'intern/cycles/util') diff --git a/intern/cycles/util/util_task.cpp b/intern/cycles/util/util_task.cpp index 6260d8d13ab..2a705c2432b 100644 --- a/intern/cycles/util/util_task.cpp +++ b/intern/cycles/util/util_task.cpp @@ -223,10 +223,10 @@ int get_num_total_processors(const vector& num_per_node_processors) return num_total_processors; } -/* Assign every thread a node on which is should be running, for the best - * performance. */ +/* Compute NUMA node for every thread to run on, for the best performance. */ vector distribute_threads_on_nodes(const int num_threads) { + /* Start with all threads unassigned to any specific NUMA node. */ vector thread_nodes(num_threads, -1); const int num_active_group_processors = system_cpu_num_active_group_processors(); -- cgit v1.2.3