Pinning Cilk workers to Cores

Pinning Cilk workers to Cores

tzannes wrote:

I don't know much about pining threads (or workers) to cores but there's an interesting tutorial presented in PPoPP11 in favor of having such an option.

http://blogs.fau.de/hager/tutorials/ppopp11/

2 posts / 0 nouveau(x)
Dernière contribution
Reportez-vous à notre Notice d'optimisation pour plus d'informations sur les choix et l'optimisation des performances dans les produits logiciels Intel.

For the moment, Intel Cilk Plus does not support pinning. There are a couple of issues that need to be worked out.

  • Is this application sharing processor resources with other applications?
  • If this application is sharing the processor, what happens when other threads get scheduled on the cores we're running on?
  • How do we expose this feature to users?

For now, we don't have good answers to these questions, so we haven't supported pinning.

I've done some experimentswithmixed results from pinning. It definitely helps if you can keep the worker threads on the same processor. But if you want more worker threads than will fit on your chip, how do you choose? If you're not using a dedicated machine, the mix of threads on any given processor is changning constantly.

- Barry

Laisser un commentaire

Veuillez ouvrir une session pour ajouter un commentaire. Pas encore membre ? Rejoignez-nous dès aujourd’hui