Skip to content

Commit 8df293c

Browse files
committed
[SYCL][Doc] Mark reduction properties experimental
Also fixes a few typos in the specification that were uncovered during implementation of the extension. Signed-off-by: John Pennycook <[email protected]>
1 parent 75197db commit 8df293c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sycl/doc/extensions/proposed/sycl_ext_oneapi_reduction_properties.asciidoc renamed to sycl/doc/extensions/experimental/sycl_ext_oneapi_reduction_properties.asciidoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ template <typename T, typename BinaryOperation, typename PropertyList>
111111
__unspecified__ reduction(T* var, BinaryOperation combiner,
112112
PropertyList properties);
113113
114-
template <typename T, typename Extent, typename BinaryOperation, typename PropertyList>
114+
template <typename T, size_t Extent, typename BinaryOperation, typename PropertyList>
115115
__unspecified__ reduction(span<T, Extent> vars, BinaryOperation combiner,
116116
PropertyList properties);
117117
@@ -124,7 +124,7 @@ template <typename T, typename BinaryOperation, typename PropertyList>
124124
__unspecified__ reduction(T* var, const T& identity, BinaryOperation combiner,
125125
PropertyList properties);
126126
127-
template <typename T, typename Extent, typename BinaryOperation, typename PropertyList>
127+
template <typename T, size_t Extent, typename BinaryOperation, typename PropertyList>
128128
__unspecified__ reduction(span<T, Extent> vars, const T& identity,
129129
BinaryOperation combiner,
130130
PropertyList properties);
@@ -192,7 +192,7 @@ use of atomic operations, etc. _{endnote}_]
192192

193193
[source,c++]
194194
----
195-
using syclex = sycl::ext::oneapi::experimental;
195+
namespace syclex = sycl::ext::oneapi::experimental;
196196
197197
float sum(sycl::queue q, float* input, size_t N) {
198198
@@ -205,10 +205,10 @@ float sum(sycl::queue q, float* input, size_t N) {
205205
h.parallel_for(N, reduction, [=](size_t i, auto& reducer) {
206206
reducer += input[i];
207207
});
208-
}
208+
});
209209
}
210210
return result;
211-
211+
212212
}
213213
214214
...

0 commit comments

Comments
 (0)