Skip to content

Commit 1b3ff0c

Browse files
committed
Apply clang-format
1 parent 4f773d5 commit 1b3ff0c

File tree

2 files changed

+10
-15
lines changed

2 files changed

+10
-15
lines changed

sycl/include/sycl/ext/oneapi/experimental/enqueue_functions.hpp

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -334,8 +334,7 @@ template <typename T>
334334
void copy(queue Q, const T *Src, T *Dest, size_t Count,
335335
const sycl::detail::code_location &CodeLoc =
336336
sycl::detail::code_location::current()) {
337-
submit(
338-
Q, [&](handler &CGH) { copy<T>(CGH, Src, Dest, Count); }, CodeLoc);
337+
submit(Q, [&](handler &CGH) { copy<T>(CGH, Src, Dest, Count); }, CodeLoc);
339338
}
340339

341340
inline void memset(handler &CGH, void *Ptr, int Value, size_t NumBytes) {
@@ -355,8 +354,7 @@ template <typename T>
355354
void fill(sycl::queue Q, T *Ptr, const T &Pattern, size_t Count,
356355
const sycl::detail::code_location &CodeLoc =
357356
sycl::detail::code_location::current()) {
358-
submit(
359-
Q, [&](handler &CGH) { fill<T>(CGH, Ptr, Pattern, Count); }, CodeLoc);
357+
submit(Q, [&](handler &CGH) { fill<T>(CGH, Ptr, Pattern, Count); }, CodeLoc);
360358
}
361359

362360
inline void prefetch(handler &CGH, void *Ptr, size_t NumBytes,
@@ -376,8 +374,7 @@ inline void prefetch(queue Q, void *Ptr, size_t NumBytes,
376374
prefetch_type type = prefetch_type::device,
377375
const sycl::detail::code_location &CodeLoc =
378376
sycl::detail::code_location::current()) {
379-
submit(
380-
Q, [&](handler &CGH) { prefetch(CGH, Ptr, NumBytes, type); }, CodeLoc);
377+
submit(Q, [&](handler &CGH) { prefetch(CGH, Ptr, NumBytes, type); }, CodeLoc);
381378
}
382379

383380
inline void mem_advise(handler &CGH, void *Ptr, size_t NumBytes, int Advice) {
@@ -392,8 +389,7 @@ inline void barrier(handler &CGH) { CGH.ext_oneapi_barrier(); }
392389

393390
inline void barrier(queue Q, const sycl::detail::code_location &CodeLoc =
394391
sycl::detail::code_location::current()) {
395-
submit(
396-
Q, [&](handler &CGH) { barrier(CGH); }, CodeLoc);
392+
submit(Q, [&](handler &CGH) { barrier(CGH); }, CodeLoc);
397393
}
398394

399395
inline void partial_barrier(handler &CGH, const std::vector<event> &Events) {
@@ -403,8 +399,7 @@ inline void partial_barrier(handler &CGH, const std::vector<event> &Events) {
403399
inline void partial_barrier(queue Q, const std::vector<event> &Events,
404400
const sycl::detail::code_location &CodeLoc =
405401
sycl::detail::code_location::current()) {
406-
submit(
407-
Q, [&](handler &CGH) { partial_barrier(CGH, Events); }, CodeLoc);
402+
submit(Q, [&](handler &CGH) { partial_barrier(CGH, Events); }, CodeLoc);
408403
}
409404

410405
inline void execute_graph(queue Q, command_graph<graph_state::executable> &G,

sycl/source/detail/cg.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,8 @@ class NDRDescT {
115115

116116
NDRDescT(sycl::range<3> NumWorkItems, sycl::range<3> LocalSize,
117117
sycl::id<3> Offset, int DimsArg)
118-
: GlobalSize{NumWorkItems}, LocalSize{LocalSize},
119-
GlobalOffset{Offset}, Dims{size_t(DimsArg)} {
118+
: GlobalSize{NumWorkItems}, LocalSize{LocalSize}, GlobalOffset{Offset},
119+
Dims{size_t(DimsArg)} {
120120
setNDRangeLeftover();
121121
}
122122

@@ -231,7 +231,7 @@ class CG {
231231
getAuxiliaryResources() const {
232232
return {};
233233
}
234-
virtual void clearAuxiliaryResources(){};
234+
virtual void clearAuxiliaryResources() {};
235235

236236
virtual ~CG() = default;
237237

@@ -324,8 +324,8 @@ class CGCopy : public CG {
324324
CGCopy(CGType CopyType, void *Src, void *Dst, CG::StorageInitHelper CGData,
325325
std::vector<std::shared_ptr<const void>> AuxiliaryResources,
326326
detail::code_location loc = {})
327-
: CG(CopyType, std::move(CGData), std::move(loc)), MSrc(Src),
328-
MDst(Dst), MAuxiliaryResources{AuxiliaryResources} {}
327+
: CG(CopyType, std::move(CGData), std::move(loc)), MSrc(Src), MDst(Dst),
328+
MAuxiliaryResources{AuxiliaryResources} {}
329329
void *getSrc() { return MSrc; }
330330
void *getDst() { return MDst; }
331331

0 commit comments

Comments
 (0)