Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCL] Enable algorithm support for sub_group #1392

Merged
merged 17 commits into from Mar 27, 2020

Conversation

Pennycook
Copy link
Contributor

  • Adds static members to sub_group class.
  • sub_group member functions marked deprecated, to be removed later.
  • SPIR-V helpers expanded to convert SYCL group to SPIR-V scope.

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

@Pennycook Pennycook added the spec extension All issues/PRs related to extensions specifications label Mar 25, 2020
sycl/include/CL/__spirv/spirv_ops.hpp Outdated Show resolved Hide resolved
sycl/include/CL/sycl/intel/sub_group.hpp Outdated Show resolved Hide resolved
Signed-off-by: John Pennycook <john.pennycook@intel.com>
- sub_group member functions marked deprecated, to be removed later.
- SPIR-V helpers expanded to convert SYCL group to SPIR-V scope.

Signed-off-by: John Pennycook <john.pennycook@intel.com>
Signed-off-by: John Pennycook <john.pennycook@intel.com>
Signed-off-by: John Pennycook <john.pennycook@intel.com>
Signed-off-by: John Pennycook <john.pennycook@intel.com>
Signed-off-by: John Pennycook <john.pennycook@intel.com>
Signed-off-by: John Pennycook <john.pennycook@intel.com>
Multiple definition errors again...

Signed-off-by: John Pennycook <john.pennycook@intel.com>
Signed-off-by: John Pennycook <john.pennycook@intel.com>
Signed-off-by: John Pennycook <john.pennycook@intel.com>
Signed-off-by: John Pennycook <john.pennycook@intel.com>
Signed-off-by: John Pennycook <john.pennycook@intel.com>
Signed-off-by: John Pennycook <john.pennycook@intel.com>
Takes message as a string.

Signed-off-by: John Pennycook <john.pennycook@intel.com>
Signed-off-by: John Pennycook <john.pennycook@intel.com>
@Pennycook Pennycook force-pushed the sub-group-algorithms-prototype branch from 8c7725e to 38f2906 Compare March 27, 2020 14:24
Signed-off-by: John Pennycook <john.pennycook@intel.com>
EnableIfIsScalarArithmetic<T> reduce(T x, T init, BinaryOperation op) const {
return op(init, reduce(x, op));
}

template <typename T, class BinaryOperation>
#if __cplusplus >= 201402L
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't need this #if anymore.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than this small clean-up, the patch looks good to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, you're right. Thanks!

Signed-off-by: John Pennycook <john.pennycook@intel.com>
@bader bader merged commit 017af4e into intel:sycl Mar 27, 2020
@Pennycook Pennycook deleted the sub-group-algorithms-prototype branch March 27, 2020 18:56
aelovikov-intel pushed a commit that referenced this pull request Feb 17, 2023
This test store the matrix B that is VNNIed (packed) in a row major fashion. This is expected to fail on the GPU because the implementation does not support automatic transformation YET, in this case: VNNI to row major in the store.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spec extension All issues/PRs related to extensions specifications
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants