[x265] [PATCH] threadpool: use all available threads on each NUMA node with --pools=NULL option too
mahesh at multicorewareinc.com
mahesh at multicorewareinc.com
Fri Dec 18 05:26:31 CET 2015
# HG changeset patch
# User Mahesh Pittala <mahesh at multicorewareinc.com>
# Date 1450412779 -19800
# Fri Dec 18 09:56:19 2015 +0530
# Node ID edaf7565eebb213fb53a2e6e4e073ddaa7167576
# Parent 9c797a5915814a74663f4f1f4edf8a9fd17d5c42
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 9c797a591581 -r edaf7565eebb source/common/threadpool.cpp
--- a/source/common/threadpool.cpp Thu Dec 10 21:37:01 2015 +0530
+++ b/source/common/threadpool.cpp Fri Dec 18 09:56:19 2015 +0530
@@ -277,7 +277,7 @@
}
else if (*nodeStr == '-')
threadsPerPool[i] = 0;
- else if (*nodeStr == '*')
+ else if (*nodeStr == '*' || !stricmp(nodeStr, "NULL"))
{
for (int j = i; j < numNumaNodes; j++)
{
More information about the x265-devel
mailing list