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-11 17:01:54 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2019-01-11 17:03:48 +0300
commitc1dd74580ed8352b9f6c96d816a604ebb4f3c39d (patch)
tree3389d695f2e3f93c324350c0e43cf85b7af1dc3a /intern/cycles/util/util_thread.cpp
parente5a1a9288c66ce218a03abf7666336a39ba03b8f (diff)
Fix T60227: Crash when Cycles uses more than system threads
Tweaked scheduling so it survives this situation by scattering "extra" threads uniformly over all the NUMA nodes. There are still tweaks possible to make some specific hardware configurations work better.
Diffstat (limited to 'intern/cycles/util/util_thread.cpp')
-rw-r--r--intern/cycles/util/util_thread.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/intern/cycles/util/util_thread.cpp b/intern/cycles/util/util_thread.cpp
index 4d30e3f564f..1880eefcb9c 100644
--- a/intern/cycles/util/util_thread.cpp
+++ b/intern/cycles/util/util_thread.cpp
@@ -58,4 +58,9 @@ bool thread::join()
}
}
+void thread::schedule_to_node(int node)
+{
+ node_ = node;
+}
+
CCL_NAMESPACE_END