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 post / 0 nuovi
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione

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

Lascia un commento

Eseguire l'accesso per aggiungere un commento. Non siete membri? Iscriviti oggi