@@ -129,16 +129,16 @@ namespace sycl::ext::oneapi::experimental {
129
129
public:
130
130
using arrival_token = __unspecified__;
131
131
132
- static constexpr ptrdiff_t max() noexcept;
132
+ static constexpr std:: ptrdiff_t max() noexcept;
133
133
134
- constexpr explicit barrier(ptrdiff_t expected,
134
+ constexpr explicit barrier(std:: ptrdiff_t expected,
135
135
CompletionFunction f = CompletionFunction());
136
136
~barrier();
137
137
138
138
barrier(const barrier&) = delete;
139
139
barrier& operator=(const barrier&) = delete;
140
140
141
- [[nodiscard]] arrival_token arrive(ptrdiff_t update = 1);
141
+ [[nodiscard]] arrival_token arrive(std:: ptrdiff_t update = 1);
142
142
void wait(arrival_token&& arrival) const;
143
143
144
144
void arrive_and_wait();
@@ -150,14 +150,14 @@ namespace sycl::ext::oneapi::experimental {
150
150
151
151
[source,c++]
152
152
----
153
- static constexpr ptrdiff_t max() noexcept;
153
+ static constexpr std:: ptrdiff_t max() noexcept;
154
154
----
155
155
_Returns_: The maximum number of threads of execution that can be synchronized
156
156
by any `barrier` with the specified `Scope` and `CompletionFunction`.
157
157
158
158
[source,c++]
159
159
----
160
- constexpr explicit barrier(ptrdiff_t expected, CompletionFunction f = CompletionFunction());
160
+ constexpr explicit barrier(std:: ptrdiff_t expected, CompletionFunction f = CompletionFunction());
161
161
----
162
162
_Preconditions_: If `Scope` is `memory_scope::work_group`, the calling thread
163
163
of execution must be a work-item belonging to the work-group that will use the
@@ -184,7 +184,7 @@ concurrently introduces a data race.
184
184
185
185
[source,c++]
186
186
----
187
- [[nodiscard]] arrival_token arrive(ptrdiff_t update = 1);
187
+ [[nodiscard]] arrival_token arrive(std:: ptrdiff_t update = 1);
188
188
----
189
189
_Effects_: The calling thread of execution arrives at the barrier and decreases
190
190
the expected count by `update`.
@@ -240,6 +240,7 @@ extension.
240
240
241
241
[source,c++]
242
242
----
243
+ namespace syclex = sycl::ext::oneapi::experimental;
243
244
using work_group_barrier = syclex::barrier<sycl::memory_scope::work_group>;
244
245
245
246
q.parallel_for(..., [=](sycl::nd_item it) {
@@ -264,6 +265,7 @@ initialized on the device that will use the barrier.
264
265
265
266
[source,c++]
266
267
----
268
+ namespace syclex = sycl::ext::oneapi::experimental;
267
269
using device_barrier = syclex::barrier<sycl::memory_scope::device>;
268
270
269
271
// Allocate memory for the barrier
@@ -306,6 +308,7 @@ accessible by the host.
306
308
307
309
[source,c++]
308
310
----
311
+ namespace syclex = sycl::ext::oneapi::experimental;
309
312
using system_barrier = syclex::barrier<sycl::memory_scope::system>;
310
313
311
314
// Allocate memory for the barrier
0 commit comments