<div dir="ltr">Please ignore this this behaviour is not required for linux systems. Thanks. </div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Regards,<div>Praveen</div></div></div></div>
<br><div class="gmail_quote">On Wed, Sep 7, 2016 at 5:19 PM,  <span dir="ltr"><<a href="mailto:praveen@multicorewareinc.com" target="_blank">praveen@multicorewareinc.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"># HG changeset patch<br>
# User Praveen Tiwari <<a href="mailto:praveen@multicorewareinc.com">praveen@multicorewareinc.com</a>><br>
# Date 1473246754 -19800<br>
#      Wed Sep 07 16:42:34 2016 +0530<br>
# Node ID 9587a394ba58a2c3a579db5fb3f753<wbr>1daf49559b<br>
# Parent  df559450949bd085b0fc5e01332aa8<wbr>458af2fa43<br>
threadpool.cpp: fix default pool param behaviour, if NULL or 灯 (default) x265 will use all available threads on each NUMA node<br>
<br>
diff -r df559450949b -r 9587a394ba58 source/common/threadpool.cpp<br>
--- a/source/common/threadpool.cpp      Wed Aug 10 13:26:18 2016 +0530<br>
+++ b/source/common/threadpool.cpp      Wed Sep 07 16:42:34 2016 +0530<br>
@@ -330,8 +330,8 @@<br>
             {<br>
                 for (int j = i; j < numNumaNodes; j++)<br>
                 {<br>
-                    threadsPerPool[numNumaNodes] += cpusPerNode[j];<br>
-                    nodeMaskPerPool[numNumaNodes] |= ((uint64_t)1 << j);<br>
+                    threadsPerPool[j] += cpusPerNode[j];<br>
+                    nodeMaskPerPool[j] |= ((uint64_t)1 << j);<br>
                 }<br>
                 break;<br>
             }<br>
@@ -366,8 +366,8 @@<br>
     {<br>
         for (int i = 0; i < numNumaNodes; i++)<br>
         {<br>
-            threadsPerPool[numNumaNodes]  += cpusPerNode[i];<br>
-            nodeMaskPerPool[numNumaNodes] |= ((uint64_t)1 << i);<br>
+            threadsPerPool[i]  += cpusPerNode[i];<br>
+            nodeMaskPerPool[i] |= ((uint64_t)1 << i);<br>
         }<br>
     }<br>
<br>
</blockquote></div><br></div>