affinity and hyperthreading
mc_instanciator.hh
does a few suspicious things:
- It creates threads that prints their CPU number, but sets the affinity of each thread in the master after the thread has started. So I suspect the CPU printed might not be the assigned one.
- It sets the affinity of the threads without taking hyper-threading into account. E.g., the first two threads will be assigned to CPU 0 and 1, which are on the same core of an hyper-threaded CPU.