Parallel_reduce Lambda for arrays

Parallel_reduce Lambda for arrays

jaidotsh's picture

Can I use lambda functions to do parallel_reduce of arrays in TBB?.
It's not over a single variable say, "sum". But over an array "sum[i]". I did not find this in the examples or in the Tutorial pdf. Can you direct me to a source Thanks in advance, Jay

2 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.
Alexey Kukanov (Intel)'s picture

For sake of future readers: I have provided an example at StackOverflow.

Login to leave a comment.