Skip to content

Commit a357c83

Browse files
committed
clang-format not applying changes, applying diff manually
1 parent 847f00a commit a357c83

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
@@ -327,8 +327,7 @@ template <typename T>
327327
void copy(queue Q, const T *Src, T *Dest, size_t Count,
328328
const sycl::detail::code_location &CodeLoc =
329329
sycl::detail::code_location::current()) {
330-
submit(
331-
Q, [&](handler &CGH) { copy<T>(CGH, Src, Dest, Count); }, CodeLoc);
330+
submit(Q, [&](handler &CGH) { copy<T>(CGH, Src, Dest, Count); }, CodeLoc);
332331
}
333332

334333
inline void memset(handler &CGH, void *Ptr, int Value, size_t NumBytes) {
@@ -348,8 +347,7 @@ template <typename T>
348347
void fill(sycl::queue Q, T *Ptr, const T &Pattern, size_t Count,
349348
const sycl::detail::code_location &CodeLoc =
350349
sycl::detail::code_location::current()) {
351-
submit(
352-
Q, [&](handler &CGH) { fill<T>(CGH, Ptr, Pattern, Count); }, CodeLoc);
350+
submit(Q, [&](handler &CGH) { fill<T>(CGH, Ptr, Pattern, Count); }, CodeLoc);
353351
}
354352

355353
inline void prefetch(handler &CGH, void *Ptr, size_t NumBytes,
@@ -365,8 +363,7 @@ inline void prefetch(queue Q, void *Ptr, size_t NumBytes,
365363
prefetch_type type = prefetch_type::device,
366364
const sycl::detail::code_location &CodeLoc =
367365
sycl::detail::code_location::current()) {
368-
submit(
369-
Q, [&](handler &CGH) { prefetch(CGH, Ptr, NumBytes, type); }, CodeLoc);
366+
submit(Q, [&](handler &CGH) { prefetch(CGH, Ptr, NumBytes, type); }, CodeLoc);
370367
}
371368

372369
inline void mem_advise(handler &CGH, void *Ptr, size_t NumBytes, int Advice) {
@@ -381,8 +378,7 @@ inline void barrier(handler &CGH) { CGH.ext_oneapi_barrier(); }
381378

382379
inline void barrier(queue Q, const sycl::detail::code_location &CodeLoc =
383380
sycl::detail::code_location::current()) {
384-
submit(
385-
Q, [&](handler &CGH) { barrier(CGH); }, CodeLoc);
381+
submit(Q, [&](handler &CGH) { barrier(CGH); }, CodeLoc);
386382
}
387383

388384
inline void partial_barrier(handler &CGH, const std::vector<event> &Events) {
@@ -392,8 +388,7 @@ inline void partial_barrier(handler &CGH, const std::vector<event> &Events) {
392388
inline void partial_barrier(queue Q, const std::vector<event> &Events,
393389
const sycl::detail::code_location &CodeLoc =
394390
sycl::detail::code_location::current()) {
395-
submit(
396-
Q, [&](handler &CGH) { partial_barrier(CGH, Events); }, CodeLoc);
391+
submit(Q, [&](handler &CGH) { partial_barrier(CGH, Events); }, CodeLoc);
397392
}
398393

399394
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
@@ -111,8 +111,8 @@ class NDRDescT {
111111

112112
NDRDescT(sycl::range<3> NumWorkItems, sycl::range<3> LocalSize,
113113
sycl::id<3> Offset, int DimsArg)
114-
: GlobalSize{NumWorkItems}, LocalSize{LocalSize},
115-
GlobalOffset{Offset}, Dims{size_t(DimsArg)} {
114+
: GlobalSize{NumWorkItems}, LocalSize{LocalSize}, GlobalOffset{Offset},
115+
Dims{size_t(DimsArg)} {
116116
setNDRangeLeftover();
117117
}
118118

@@ -227,7 +227,7 @@ class CG {
227227
getAuxiliaryResources() const {
228228
return {};
229229
}
230-
virtual void clearAuxiliaryResources(){};
230+
virtual void clearAuxiliaryResources() {};
231231

232232
virtual ~CG() = default;
233233

@@ -320,8 +320,8 @@ class CGCopy : public CG {
320320
CGCopy(CGType CopyType, void *Src, void *Dst, CG::StorageInitHelper CGData,
321321
std::vector<std::shared_ptr<const void>> AuxiliaryResources,
322322
detail::code_location loc = {})
323-
: CG(CopyType, std::move(CGData), std::move(loc)), MSrc(Src),
324-
MDst(Dst), MAuxiliaryResources{AuxiliaryResources} {}
323+
: CG(CopyType, std::move(CGData), std::move(loc)), MSrc(Src), MDst(Dst),
324+
MAuxiliaryResources{AuxiliaryResources} {}
325325
void *getSrc() { return MSrc; }
326326
void *getDst() { return MDst; }
327327

0 commit comments

Comments
 (0)