Skip to content

Commit 2f4cdae

Browse files
author
Victor Lomuller
committed
clang format
1 parent 803764e commit 2f4cdae

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

sycl/include/sycl/ext/oneapi/work_group_scratch_memory.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
#pragma once
99

10-
#include <sycl/detail/defines_elementary.hpp> // for __SYCL_ALWAYS_INLINE
11-
#include <sycl/exception.hpp> // for exception
10+
#include <sycl/detail/defines_elementary.hpp> // for __SYCL_ALWAYS_INLINE
11+
#include <sycl/exception.hpp> // for exception
1212
#include <sycl/ext/oneapi/properties/properties.hpp> // for properties
1313

1414
namespace sycl {
@@ -17,7 +17,7 @@ namespace ext::oneapi {
1717
namespace experimental {
1818

1919
__SYCL_ALWAYS_INLINE
20-
inline void* get_work_group_scratch_memory() {
20+
inline void *get_work_group_scratch_memory() {
2121
#ifdef __SYCL_DEVICE_ONLY__
2222
return __sycl_dynamicLocalMemoryPlaceholder();
2323
#else

sycl/include/sycl/ext/oneapi/work_group_static.hpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,8 @@ template <typename T> class __SYCL_WG_SCOPE work_group_static final {
4242

4343
operator T &() noexcept { return data; }
4444

45-
template <class TArg = T,
46-
typename = std::enable_if_t<!std::is_array_v<TArg>>>
47-
work_group_static& operator=(const T &value) noexcept {
45+
template <class TArg = T, typename = std::enable_if_t<!std::is_array_v<TArg>>>
46+
work_group_static &operator=(const T &value) noexcept {
4847
data = value;
4948
return *this;
5049
}

sycl/source/detail/program_manager/program_manager.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1759,8 +1759,8 @@ void ProgramManager::cacheKernelImplicitLocalArg(RTDeviceBinaryImage &Img) {
17591759
}
17601760
}
17611761

1762-
std::optional<int> ProgramManager::kernelImplicitLocalArgPos(
1763-
const std::string &KernelName) const {
1762+
std::optional<int>
1763+
ProgramManager::kernelImplicitLocalArgPos(const std::string &KernelName) const {
17641764
auto it = m_KernelImplicitLocalArgPos.find(KernelName);
17651765
if (it != m_KernelImplicitLocalArgPos.end())
17661766
return it->second;

sycl/source/detail/program_manager/program_manager.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,8 @@ class ProgramManager {
289289

290290
bool kernelUsesAssert(const std::string &KernelName) const;
291291

292-
std::optional<int> kernelImplicitLocalArgPos(const std::string &KernelName) const;
292+
std::optional<int>
293+
kernelImplicitLocalArgPos(const std::string &KernelName) const;
293294

294295
bool kernelUsesAsan() const { return m_AsanFoundInImage; }
295296

sycl/test-e2e/WorkGroupMemory/Dynamic/dynamic_alloc_local_accessor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int main() {
3030
Q.submit([&](handler &Cgh) {
3131
auto Acc = Buf.get_access<access::mode::read_write>(Cgh);
3232
sycl_ext::work_group_scratch_size static_size(WgSize * RepeatWG *
33-
sizeof(int));
33+
sizeof(int));
3434
sycl_ext::properties properties{static_size};
3535
auto LocalAccessor =
3636
sycl::local_accessor<int>(WgSize * RepeatWG * sizeof(int), Cgh);

sycl/test-e2e/WorkGroupMemory/Dynamic/dynamic_alloc_ptr_alias.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int main() {
3030
Q.submit([&](handler &Cgh) {
3131
auto Acc = Buf.get_access<access::mode::read_write>(Cgh);
3232
sycl_ext::work_group_scratch_size static_size(WgSize * RepeatWG *
33-
sizeof(int));
33+
sizeof(int));
3434
sycl_ext::properties properties{static_size};
3535
Cgh.parallel_for(nd_range<1>(range<1>(Size), range<1>(WgSize)), properties,
3636
[=](nd_item<1> Item) {

sycl/test-e2e/WorkGroupMemory/Dynamic/dynamic_allocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ int main() {
2929
Q.submit([&](handler &Cgh) {
3030
auto Acc = Buf.get_access<access::mode::read_write>(Cgh);
3131
sycl_ext::work_group_scratch_size static_size(WgSize * RepeatWG *
32-
sizeof(int));
32+
sizeof(int));
3333
sycl_ext::properties properties{static_size};
3434
Cgh.parallel_for(nd_range<1>(range<1>(Size), range<1>(WgSize)), properties,
3535
[=](nd_item<1> Item) {

sycl/test/extensions/work_group_static/work_group_static_negative.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
using namespace sycl::ext::oneapi::experimental;
88

99
class InvalidCtorDtor {
10-
InvalidCtorDtor() {}
11-
~InvalidCtorDtor() {}
10+
InvalidCtorDtor() {}
11+
~InvalidCtorDtor() {}
1212
};
1313

1414
SYCL_EXTERNAL void test(int *p) {

0 commit comments

Comments
 (0)