Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2019-01-22 13:57:03 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-01-22 13:57:03 +0300
commitfef20d987c1f01a732526616766953dec4e8ac60 (patch)
tree286ca20206357c58a1f73d523cfe0b1b1413ab70 /intern/cycles/util
parent0bbca0e2214f007d486af6e3f7bd693d15f11580 (diff)
parent78d4e0fbf2c4a3bf58c4e09cc5d51b9c4f8c00bb (diff)
Merge branch 'blender2.7'
Diffstat (limited to 'intern/cycles/util')
-rw-r--r--intern/cycles/util/util_task.cpp4
1 files changed, 2 insertions, 2 deletions
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<int>& 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<int> distribute_threads_on_nodes(const int num_threads)
{
+ /* Start with all threads unassigned to any specific NUMA node. */
vector<int> thread_nodes(num_threads, -1);
const int num_active_group_processors =
system_cpu_num_active_group_processors();