Skip to content

Commit

Permalink
Remove *_reduce functions for kernel objects
Browse files Browse the repository at this point in the history
There are currently no backends that define interop for reductions,
so we can remove these functions for now. If we decide later that
these functions are necessary, we can release a revision of the KHR.
  • Loading branch information
Pennycook committed Dec 12, 2024
1 parent db380b4 commit d26831a
Showing 1 changed file with 0 additions and 92 deletions.
92 changes: 0 additions & 92 deletions adoc/extensions/sycl_khr_free_function_commands.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -257,49 +257,6 @@ _Effects (4-6)_: Equivalent to [code]#+q.submit([&](handler& h) {
launch_reduce(h, r, k, reductions...); })+#.


'''

.[apititle]#launch_reduce# (kernel object)
[source,role=synopsis,id=api:launch_reduce-kernel]
----
namespace sycl::khr {
template <typename... Args>
void launch_reduce(sycl::handler& h, sycl::range<1> r,
const sycl::kernel& k, Args&&... args); (1)
template <typename... Args>
void launch_reduce(sycl::handler& h, sycl::range<2> r,
const sycl::kernel& k, Args&&... args); (2)
template <typename... Args>
void launch_reduce(sycl::handler& h, sycl::range<3> r,
const sycl::kernel& k, Args&&... args); (3)
template <typename... Args>
void launch_reduce(sycl::queue q, sycl::range<1> r,
const sycl::kernel& k, Args&&... args); (4)
template <typename... Args>
void launch_reduce(sycl::queue q, sycl::range<2> r,
const sycl::kernel& k, Args&&... args); (5)
template <typename... Args>
void launch_reduce(sycl::queue q, sycl::range<3> r,
const sycl::kernel& k, Args&&... args); (6)
}
----
_Effects (1-3)_: Equivalent to:
[source,c++]
----
h.set_args(args...);
h.parallel_for(r, k);
----

_Effects (4-6)_: Equivalent to [code]#+q.submit([&](handler& h) {
launch_reduce(h, r, k, args...); })+#.

'''

.[apititle]#launch_grouped# (kernel function)
Expand Down Expand Up @@ -431,55 +388,6 @@ launch_grouped_reduce(h, r, size, k, reductions...); })+#.

'''

.[apititle]#launch_grouped_reduce# (kernel object)
[source,role=synopsis,id=api:launch_grouped_reduce-kernel]
----
namespace sycl::khr {
template <typename... Args>
void launch_grouped_reduce(sycl::handler& h, sycl::range<1> r,
sycl::range<1> size, const sycl::kernel& k,
Args&&... args); (1)
template <typename... Args>
void launch_grouped_reduce(sycl::handler& h, sycl::range<2> r,
sycl::range<2> size, const sycl::kernel& k,
Args&&... args); (2)
template <typename... Args>
void launch_grouped_reduce(sycl::handler& h, sycl::range<3> r,
sycl::range<3> size, const sycl::kernel& k,
Args&&... args); (3)
template <typename... Args>
void launch_grouped_reduce(sycl::queue q, sycl::range<1> r,
sycl::range<1> size, const sycl::kernel& k,
Args&&... args); (4)
template <typename... Args>
void launch_grouped_reduce(sycl::queue q, sycl::range<2> r,
sycl::range<2> size, const sycl::kernel& k,
Args&&... args); (5)
template <typename... Args>
void launch_grouped_reduce(sycl::queue q, sycl::range<3> r,
sycl::range<3> size, const sycl::kernel& k,
Args&&... args); (6)
}
----
_Effects (1-3)_: Equivalent to:
[source,c++]
----
h.set_args(args...);
h.parallel_for(nd_range(r, size), k);
----

_Effects (4-6)_: Equivalent to [code]#+q.submit([&](handler& h) {
launch_grouped_reduce(h, r, size, k, args...); })+#.

'''

.[apititle]#launch_task# (kernel function)
[source,role=synopsis,id=api:launch_task]
----
Expand Down

0 comments on commit d26831a

Please sign in to comment.