Can we expose parallelism in reduce function?

Can we expose parallelism in reduce function?

Hi I am developping a software where the reducer's reduce function has some parallelism I'd like to expose. Before stepping into the development, I just wonder if anyone know if we can use cilk keywords inside a reduce function? Or that I can't do it because the reduce function has to be serial?

Many thanks!
Justin

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.

You can use the Cilk keywords, but the runtime disables stealing while executing your reduce function so your code will always execute serially.

How important is the use of parallelism within your reduce function?

- Barry

Connectez-vous pour laisser un commentaire.