Skip to content

Commit ff0fccc

Browse files
author
Sergey Kanaev
committed
Address style issue
Signed-off-by: Sergey Kanaev <[email protected]>
1 parent 7a5daf6 commit ff0fccc

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

sycl/include/CL/sycl/queue.hpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,7 @@ class __SYCL_EXPORT queue {
215215
/// \param CGF is a function object containing command group.
216216
/// \param CodeLoc is the code location of the submit call (default argument)
217217
/// \return a SYCL event object for the submitted command group.
218-
template <typename T>
219-
event
220-
submit(T CGF _CODELOCPARAM(&CodeLoc)) {
218+
template <typename T> event submit(T CGF _CODELOCPARAM(&CodeLoc)) {
221219
_CODELOCARG(&CodeLoc);
222220

223221
return submit_impl(CGF, CodeLoc);
@@ -235,8 +233,7 @@ class __SYCL_EXPORT queue {
235233
/// \return a SYCL event object, which corresponds to the queue the command
236234
/// group is being enqueued on.
237235
template <typename T>
238-
event
239-
submit(T CGF, queue &SecondaryQueue _CODELOCPARAM(&CodeLoc)) {
236+
event submit(T CGF, queue &SecondaryQueue _CODELOCPARAM(&CodeLoc)) {
240237
_CODELOCARG(&CodeLoc);
241238

242239
return submit_impl(CGF, SecondaryQueue, CodeLoc);
@@ -264,8 +261,8 @@ class __SYCL_EXPORT queue {
264261
/// group is being enqueued on.
265262
event
266263
submit_barrier(const vector_class<event> &WaitList _CODELOCPARAM(&CodeLoc)) {
267-
return submit([=](handler &CGH) { CGH.barrier(WaitList); }
268-
_CODELOCFW(CodeLoc));
264+
return submit(
265+
[=](handler &CGH) { CGH.barrier(WaitList); } _CODELOCFW(CodeLoc));
269266
}
270267

271268
/// Performs a blocking wait for the completion of all enqueued tasks in the

0 commit comments

Comments
 (0)