Can we expose parallelism in reduce function?

Can we expose parallelism in reduce function?

Ritratto di Zhunping Zhang

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 new
Ultimo contenuto
Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione
Ritratto di Barry Tannenbaum (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

Accedere per lasciare un commento.