<div dir="ltr">From aa24f69f41685a64ee936e22bcfd2e00895c8ad3 Mon Sep 17 00:00:00 2001<br>From: Keshav E <<a href="mailto:keshav@multicorewareinc.com">keshav@multicorewareinc.com</a>><br>Date: Fri, 25 Feb 2022 16:25:16 +0530<br>Subject: [PATCH] Fix Linux bug to utilize all the cores<br><br>---<br> source/common/threadpool.cpp | 2 +-<br> 1 file changed, 1 insertion(+), 1 deletion(-)<br><br>diff --git a/source/common/threadpool.cpp b/source/common/threadpool.cpp<br>index 2db7a14..91e82a2 100644<br>--- a/source/common/threadpool.cpp<br>+++ b/source/common/threadpool.cpp<br>@@ -301,7 +301,7 @@ ThreadPool* ThreadPool::allocThreadPools(x265_param* p, int& numPools, bool isTh<br>     /* limit threads based on param->numaPools<br>      * For windows because threads can't be allocated to live across sockets<br>      * changing the default behavior to be per-socket pools -- FIXME */<br>-#if defined(_WIN32_WINNT) && _WIN32_WINNT >= _WIN32_WINNT_WIN7<br>+#if defined(_WIN32_WINNT) && _WIN32_WINNT >= _WIN32_WINNT_WIN7 || HAVE_LIBNUMA<br>     if (!p->numaPools || (strcmp(p->numaPools, "NULL") == 0 || strcmp(p->numaPools, "*") == 0 || strcmp(p->numaPools, "") == 0))<br>     {<br>          char poolString[50] = "";<br>-- <br>1.8.3.1<br></div>