Skip to content

Commit

Permalink
clang-format not applying changes, applying diff manually
Browse files Browse the repository at this point in the history
  • Loading branch information
ianayl committed Dec 12, 2024
1 parent 847f00a commit a357c83
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 15 deletions.
15 changes: 5 additions & 10 deletions sycl/include/sycl/ext/oneapi/experimental/enqueue_functions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,7 @@ template <typename T>
void copy(queue Q, const T *Src, T *Dest, size_t Count,
const sycl::detail::code_location &CodeLoc =
sycl::detail::code_location::current()) {
submit(
Q, [&](handler &CGH) { copy<T>(CGH, Src, Dest, Count); }, CodeLoc);
submit(Q, [&](handler &CGH) { copy<T>(CGH, Src, Dest, Count); }, CodeLoc);
}

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

inline void prefetch(handler &CGH, void *Ptr, size_t NumBytes,
Expand All @@ -365,8 +363,7 @@ inline void prefetch(queue Q, void *Ptr, size_t NumBytes,
prefetch_type type = prefetch_type::device,
const sycl::detail::code_location &CodeLoc =
sycl::detail::code_location::current()) {
submit(
Q, [&](handler &CGH) { prefetch(CGH, Ptr, NumBytes, type); }, CodeLoc);
submit(Q, [&](handler &CGH) { prefetch(CGH, Ptr, NumBytes, type); }, CodeLoc);
}

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

inline void barrier(queue Q, const sycl::detail::code_location &CodeLoc =
sycl::detail::code_location::current()) {
submit(
Q, [&](handler &CGH) { barrier(CGH); }, CodeLoc);
submit(Q, [&](handler &CGH) { barrier(CGH); }, CodeLoc);
}

inline void partial_barrier(handler &CGH, const std::vector<event> &Events) {
Expand All @@ -392,8 +388,7 @@ inline void partial_barrier(handler &CGH, const std::vector<event> &Events) {
inline void partial_barrier(queue Q, const std::vector<event> &Events,
const sycl::detail::code_location &CodeLoc =
sycl::detail::code_location::current()) {
submit(
Q, [&](handler &CGH) { partial_barrier(CGH, Events); }, CodeLoc);
submit(Q, [&](handler &CGH) { partial_barrier(CGH, Events); }, CodeLoc);
}

inline void execute_graph(queue Q, command_graph<graph_state::executable> &G,
Expand Down
10 changes: 5 additions & 5 deletions sycl/source/detail/cg.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ class NDRDescT {

NDRDescT(sycl::range<3> NumWorkItems, sycl::range<3> LocalSize,
sycl::id<3> Offset, int DimsArg)
: GlobalSize{NumWorkItems}, LocalSize{LocalSize},
GlobalOffset{Offset}, Dims{size_t(DimsArg)} {
: GlobalSize{NumWorkItems}, LocalSize{LocalSize}, GlobalOffset{Offset},
Dims{size_t(DimsArg)} {
setNDRangeLeftover();
}

Expand Down Expand Up @@ -227,7 +227,7 @@ class CG {
getAuxiliaryResources() const {
return {};
}
virtual void clearAuxiliaryResources(){};
virtual void clearAuxiliaryResources() {};

virtual ~CG() = default;

Expand Down Expand Up @@ -320,8 +320,8 @@ class CGCopy : public CG {
CGCopy(CGType CopyType, void *Src, void *Dst, CG::StorageInitHelper CGData,
std::vector<std::shared_ptr<const void>> AuxiliaryResources,
detail::code_location loc = {})
: CG(CopyType, std::move(CGData), std::move(loc)), MSrc(Src),
MDst(Dst), MAuxiliaryResources{AuxiliaryResources} {}
: CG(CopyType, std::move(CGData), std::move(loc)), MSrc(Src), MDst(Dst),
MAuxiliaryResources{AuxiliaryResources} {}
void *getSrc() { return MSrc; }
void *getDst() { return MDst; }

Expand Down

0 comments on commit a357c83

Please sign in to comment.