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 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

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

Leave a Comment

Please sign in to add a comment. Not a member? Join today