Software Archive
Read-only legacy content
17060 Discussions

Can we expose parallelism in reduce function?

Zhunping_Zhang
Beginner
522 Views
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
0 Kudos
1 Reply
Barry_T_Intel
Employee
522 Views
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
0 Kudos
Reply