Skip to content

Conversation

@Pennycook
Copy link
Contributor

Aligns the sub-group implementation with the extension doc:

  • Enables reduce and scan to take functors as arguments
  • Adds OpenCL-like reduce(x, op) overload to extension doc

Also clarifies interpretation of init values in documentation.

Signed-off-by: John Pennycook john.pennycook@intel.com

Aligns the sub-group implementation with the extension doc:
- Enables reduce and scan to take functors as arguments
- Adds OpenCL-like reduce(x, op) overload to extension doc

Also clarifies interpretation of init values in documentation.

Signed-off-by: John Pennycook <john.pennycook@intel.com>
Simplifies usage to reduce(x, plus<>())

Signed-off-by: John Pennycook <john.pennycook@intel.com>
Test all variants of reduce:
- With and without init
- With op<T>() and op<void>()

Signed-off-by: John Pennycook <john.pennycook@intel.com>
Test all variants of scan:
- Inclusive and exclusive
- With and without init
- With op<T>() and op<void>()

Signed-off-by: John Pennycook <john.pennycook@intel.com>
Avoids exporting is_vec and calc.

Signed-off-by: John Pennycook <john.pennycook@intel.com>
vladimirlaz
vladimirlaz previously approved these changes Oct 2, 2019
Avoid duplicated code in sub_group.hpp and sub_group_host.hpp.

Signed-off-by: John Pennycook <john.pennycook@intel.com>
@bader bader merged commit cd8194d into intel:sycl Oct 2, 2019
@Pennycook Pennycook deleted the subgroup-collective-syntax branch October 7, 2019 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants