Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

parallel_reduce / identity element

peter_silie
Beginner
139 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
139 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

Reply