Skip to content

Commit 6f98d16

Browse files
author
Alexander Batashev
committed
clang-format
1 parent 2b6b066 commit 6f98d16

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

sycl/include/CL/sycl/group.hpp

+9-5
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@
1414
#include <CL/sycl/detail/common.hpp>
1515
#include <CL/sycl/detail/generic_type_traits.hpp>
1616
#include <CL/sycl/detail/helpers.hpp>
17+
#include <CL/sycl/detail/spirv.hpp>
1718
#include <CL/sycl/device_event.hpp>
1819
#include <CL/sycl/h_item.hpp>
1920
#include <CL/sycl/id.hpp>
2021
#include <CL/sycl/memory_enums.hpp>
2122
#include <CL/sycl/pointers.hpp>
2223
#include <CL/sycl/range.hpp>
23-
#include <CL/sycl/detail/spirv.hpp>
2424
#include <stdexcept>
2525
#include <type_traits>
2626

@@ -51,7 +51,8 @@ static inline void workGroupBarrier(memory_scope FenceScope) {
5151
__spv::MemorySemanticsMask::WorkgroupMemory |
5252
__spv::MemorySemanticsMask::CrossWorkgroupMemory);
5353
#else
54-
throw sycl::runtime_error("Barriers are not supported on host device", PI_INVALID_DEVICE);
54+
throw sycl::runtime_error("Barriers are not supported on host device",
55+
PI_INVALID_DEVICE);
5556
#endif
5657
}
5758

@@ -450,13 +451,16 @@ template <int Dims> group<Dims> this_group() {
450451
template <typename Group>
451452
void group_barrier(Group G, memory_scope FenceScope = Group::fence_scope);
452453

453-
template <> inline void group_barrier<group<1>>(group<1>, memory_scope FenceScope) {
454+
template <>
455+
inline void group_barrier<group<1>>(group<1>, memory_scope FenceScope) {
454456
detail::workGroupBarrier(FenceScope);
455457
}
456-
template <> inline void group_barrier<group<2>>(group<2>, memory_scope FenceScope) {
458+
template <>
459+
inline void group_barrier<group<2>>(group<2>, memory_scope FenceScope) {
457460
detail::workGroupBarrier(FenceScope);
458461
}
459-
template <> inline void group_barrier<group<3>>(group<3>, memory_scope FenceScope) {
462+
template <>
463+
inline void group_barrier<group<3>>(group<3>, memory_scope FenceScope) {
460464
detail::workGroupBarrier(FenceScope);
461465
}
462466

0 commit comments

Comments
 (0)