Automatic affinitization of worker threads to CPUs
craig-chasseur opened this issue · 2 comments
To go with autodetection of the number of CPU cores in #7, it would be helpful to have a command-line flag that causes worker threads to be automatically pinned to individual CPU cores in a round-robin fashion.
I agree! It's been on my mind too. But, I couldn't find anything that was part of C++ already. There is https://www.open-mpi.org/projects/hwloc/ from Open MPI, but seems like a lot to drag into here.
Nah, I can whip up something simpler than that just using regular Linux
syscalls (with fallback on no affinitization for other OSes).
On Thu, Jan 21, 2016 at 8:16 PM Jignesh Patel notifications@github.com
wrote:
I agree! It's been on my mind too. But, I couldn't find anything that was
part of C++ already. There is https://www.open-mpi.org/projects/hwloc/
from Open MPI, but seems like a lot to drag into here.—
Reply to this email directly or view it on GitHub
#9 (comment)
.