[x265] [PATCH] threadpool: use all available threads on each NUMA node with --pools=NULL option too

mahesh at multicorewareinc.com mahesh at multicorewareinc.com
Tue Dec 15 10:44:06 CET 2015


# HG changeset patch
# User Mahesh Pittala <mahesh at multicorewareinc.com>
# Date 1450172601 -19800
#      Tue Dec 15 15:13:21 2015 +0530
# Node ID d64d110a4f92e1e78ee48da8007a2d7cef6fe1b7
# Parent  e951ab673b1c3d41ef86bc623f20ecc768d3f5c5
threadpool: use all available threads on each NUMA node with --pools=NULL option too


from x265.readthedocs, --pools = NULL, "", "*" are doing same functionality.
--pools="" & --pools="*" are using all threads but when we pass --pools=NULL, disabled
all threads pools but supposed to enable.

diff -r e951ab673b1c -r d64d110a4f92 source/common/threadpool.cpp
--- a/source/common/threadpool.cpp	Fri Dec 11 07:33:41 2015 +0530
+++ b/source/common/threadpool.cpp	Tue Dec 15 15:13:21 2015 +0530
@@ -277,7 +277,7 @@
             }
             else if (*nodeStr == '-')
                 threadsPerPool[i] = 0;
-            else if (*nodeStr == '*')
+            else if (*nodeStr == '*' || !strcmp(nodeStr, "NULL"))
             {
                 for (int j = i; j < numNumaNodes; j++)
                 {


More information about the x265-devel mailing list