[SYCL] Add prototype of group algorithms#1236
Conversation
|
@bader There was a formatting error in sycl.hpp, but on a line I didn't change. I fixed it to make the check pass, but wanted to point this out in case it's not the expected behavior of the clang-format-check script. |
@Pennycook, thanks for taking care. Are you talking about includes order? If so, I think the check is applied for all includes not separated by an empty line. |
Right, it was the include order. I understand why clang-format made the change, but it seemed to be complaining about an include that I hadn't added! Looking at the final diff everything looks fine, though, so please ignore this. Probably the order got fixed in a previous commit, and I was accidentally undoing the change. |
|
I think the test that's failing is unrelated to the changes here. I'll try again after #1245 is merged. |
bader
left a comment
There was a problem hiding this comment.
LGTM, just a few minor comments.
|
Added new algorithm from #1297. |
bader
left a comment
There was a problem hiding this comment.
@Pennycook, please, fix build issues.
Preparation to re-use code for work-group collectives: - Move calc to functional.hpp - Make SPIR-V scope an explicit argument to calc - Add C++ helper for __spirv_GroupBroadcast Signed-off-by: John Pennycook <john.pennycook@intel.com>
Simplifies definition of library functions by providing: - id_type - range_type - linear_id_type - dimensions Signed-off-by: John Pennycook <john.pennycook@intel.com>
Exposes group collectives: - all_of - any_of - none_of - reduce - exclusive_scan - inclusive_scan This prototype does not support the host device. Co-Authored-By: Roland Schulz <roland.schulz@intel.com> Co-Authored-By: Alexey Sachkov <alexey.sachkov@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>
dimensions => Dimensions Signed-off-by: John Pennycook <john.pennycook@intel.com>
Signed-off-by: John Pennycook <john.pennycook@intel.com>
dimensions => Dimensions Signed-off-by: John Pennycook <john.pennycook@intel.com>
Signed-off-by: John Pennycook <john.pennycook@intel.com>
Now enabled by default, disabled by: __DISABLE_SYCL_INTEL_GROUP_ALGORITHMS__. 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>
- Remove generic lambdas - Guard usage of transparent functors Signed-off-by: John Pennycook <john.pennycook@intel.com>
Signed-off-by: John Pennycook <john.pennycook@intel.com>
Avoids multiple definition errors. Signed-off-by: John Pennycook <john.pennycook@intel.com>
Signed-off-by: John Pennycook <john.pennycook@intel.com>
uint32_t => size_t Signed-off-by: John Pennycook <john.pennycook@intel.com>
a61240b to
760761f
Compare
…e_api_test * origin/sycl: (1188 commits) [SYCL][CUDA] Improve CUDA backend documentation (intel#1293) [SYCL] Emit textual IR when -S -fsycl-device-only is used (intel#1314) [SYCL] Add prototype of group algorithms (intel#1236) [SYCL] XFAIL test on windows to unblock pulldown Allow Intel Loop Controls only with SPV_INTEL_fpga_loop_controls Apply suggested assert msg change Implement SPV_INTEL_io_pipes extension [SYCL] Fix dependencies for SYCLLowerIR (intel#1321) [CI] Allow builds without pre-downloaded OpenCL in configure.py (intel#1317) [SYCL] Move SYCL headers from standard clang location (intel#1308) [mlir] Add support for generating dialect declarations via tablegen. Be more strict when checking existence of foo [CodeGenPrepare] Freeze condition when transforming select to br [ORC] Remove an undefined static method from LLJIT. [JITLink][AArch64] Fix incorrect capitalization in a testcase name. [ORC] Print symbol flags and materializer name in ExecutionSession::dump. [JITLink][MachO] Re-apply b64afad, MachO linker-private support, with fixes. Basic Block Sections Support. Test commit. [SYCL][Doc] Deploy documentation for PI (intel#1318) ...
Exposes group collectives:
This prototype does not support the host device.
Co-Authored-By: Roland Schulz roland.schulz@intel.com
Co-Authored-By: Alexey Sachkov alexey.sachkov@intel.com
Signed-off-by: John Pennycook john.pennycook@intel.com