Environment variable KNOB_MAX_WORKER_THREADS allows the user to override
default thread creation and thread binding. Previous commit to adjust
linux cpu topology caused setting this KNOB to bind all threads to a single
core.
This patch restores correct functionality of override.
Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
{
for (auto &core : node.cores)
{
- out_numThreadsPerProcGroup = std::max((size_t)out_numThreadsPerProcGroup,
- core.threadIds.size());
+ out_numThreadsPerProcGroup += core.threadIds.size();
}
}