Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

parallel_reduce / identity element

peter_silie
Beginner
300 Views
Hi,

according to the reference manual, the identity element passed to parallel_reduce must be the RIGHT identity element (table 12, page 34). However, as the underlying operation need not be commutative and blocks are usually evaluated from left to right, I would assume that the LEFT identity element is used as the starting value. Any hints what is wrong with my assumption?

Thanks and kind regards,
Peter
0 Kudos
1 Reply
ARCH_R_Intel
Employee
300 Views

Thanks for reporting the documentation error. Yes, it should be the left identity.

We froze our documentation for the next update last week, so the fix likely won't show up for a few months.

- Arch

0 Kudos
Reply