<div dir="ltr"><div class="gmail_extra"><pre class="">+ else // new logic: exactly 'count' threads on all NUMAs
+ {
+ threadsPerPool[numNumaNodes] = X265_MIN(count, numNumaNodes * MAX_POOL_THREADS);
+ nodeMaskPerPool[numNumaNodes] = ((uint64_t)-1 >> (64 - numNumaNodes));
+ }
</pre><div>Using numNumaNodes * MAX_POOL_THREADS as the upper-bound on the # threads per numa node isn't the cleanest. The right thing to do here is to compute the min across all cpusPerNode[i] and use that as the second param in the call to X265_MIN() so that in the case the user gives count > # cpus in any NUMA node, we are still ok.</div><div><br></div><div>Also, can you please include the patch as inline in future so that it becomes easier to review?</div><div><br></div><div>Pradeep.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 16, 2016 at 12:37 AM, Mateusz <span dir="ltr"><<a href="mailto:mateuszb@poczta.onet.pl" target="_blank">mateuszb@poczta.onet.pl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><br>
<br>_______________________________________________<br>
x265-devel mailing list<br>
<a href="mailto:x265-devel@videolan.org">x265-devel@videolan.org</a><br>
<a href="https://mailman.videolan.org/listinfo/x265-devel" rel="noreferrer" target="_blank">https://mailman.videolan.org/listinfo/x265-devel</a><br>
<br></blockquote></div><br></div></div>