Closed VictorEijkhout closed 5 years ago
Hi, my Python benchmark scripts use taskset
on Linux and start /affinity
on Windows (https://github.com/Kobzol/hardware-effects/blob/master/utils.py#L18) to pin threads to a single CPU core. A quick Google search didn't yield any way of using something similar from a command line on OS X, so I disabled this "feature" on OS X for now (try with the latest master). If you know how to do this simply, please let me know.
Thanks. It looks like OS X has an affinity API, but not a commandline utility. Btw, I'm used to numactl on Linux. Will look at taskset.
I think that numactl in general is more powerful, but taskset should be built-in on common distros, that's why I used it.
I'm not sure if I'm calling stuff the right way. Is there an outer script that I need to call to get the setup done correctly?