Skip to content

Commit 5f0e1d0

Browse files
committed
clang format
Signed-off-by: kbobrovs <[email protected]>
1 parent 8ec7dea commit 5f0e1d0

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

sycl/include/CL/sycl/INTEL/esimd/detail/esimd_sycl_util.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,10 @@ struct is_sycl_accessor_with
7474
(is_sycl_accessor<T>::target == AccessTarget),
7575
std::true_type, std::false_type> {};
7676

77-
template <typename T, accessor_mode_cap_val_t Capability, sycl::access::target AccessTarget, typename RetT>
78-
using EnableIfAccessor =
79-
sycl::detail::enable_if_t<detail::is_sycl_accessor_with<T, Capability, AccessTarget>::value, RetT>;
77+
template <typename T, accessor_mode_cap_val_t Capability,
78+
sycl::access::target AccessTarget, typename RetT>
79+
using EnableIfAccessor = sycl::detail::enable_if_t<
80+
detail::is_sycl_accessor_with<T, Capability, AccessTarget>::value, RetT>;
8081

8182
} // namespace detail
8283
} // namespace gpu

sycl/include/CL/sycl/INTEL/esimd/esimd.hpp

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,9 @@ template <typename Ty, int N> class simd {
503503
/// @param acc accessor to copy from.
504504
/// @param offset offset to copy from.
505505
template <typename AccessorT>
506-
ESIMD_INLINE EnableIfAccessor<AccessorT, accessor_mode_cap::can_read, sycl::access::target::global_buffer, void>
507-
copy_from(AccessorT acc, uint32_t offset) SYCL_ESIMD_FUNCTION;
506+
ESIMD_INLINE EnableIfAccessor<AccessorT, accessor_mode_cap::can_read,
507+
sycl::access::target::global_buffer, void>
508+
copy_from(AccessorT acc, uint32_t offset) SYCL_ESIMD_FUNCTION;
508509

509510
/// Copy all vector elements of this object into a contiguous block in memory.
510511
/// @param addr the memory address to copy to. Must be a pointer to the
@@ -517,8 +518,9 @@ template <typename Ty, int N> class simd {
517518
/// @param acc accessor to copy from.
518519
/// @param offset offset to copy from.
519520
template <typename AccessorT>
520-
ESIMD_INLINE EnableIfAccessor<AccessorT, accessor_mode_cap::can_write, sycl::access::target::global_buffer, void>
521-
copy_to(AccessorT acc, uint32_t offset) SYCL_ESIMD_FUNCTION;
521+
ESIMD_INLINE EnableIfAccessor<AccessorT, accessor_mode_cap::can_write,
522+
sycl::access::target::global_buffer, void>
523+
copy_to(AccessorT acc, uint32_t offset) SYCL_ESIMD_FUNCTION;
522524

523525
/// @} // Memory operations
524526
private:
@@ -560,7 +562,8 @@ template <typename T, int N> void simd<T, N>::copy_from(const T *const addr) {
560562

561563
template <typename T, int N>
562564
template <typename AccessorT>
563-
ESIMD_INLINE EnableIfAccessor<AccessorT, accessor_mode_cap::can_read, sycl::access::target::global_buffer, void>
565+
ESIMD_INLINE EnableIfAccessor<AccessorT, accessor_mode_cap::can_read,
566+
sycl::access::target::global_buffer, void>
564567
simd<T, N>::copy_from(AccessorT acc, uint32_t offset) {
565568
constexpr unsigned Sz = sizeof(T) * N;
566569
static_assert(Sz >= detail::OperandSize::OWORD,
@@ -597,7 +600,8 @@ template <typename T, int N> void simd<T, N>::copy_to(T *addr) {
597600

598601
template <typename T, int N>
599602
template <typename AccessorT>
600-
ESIMD_INLINE EnableIfAccessor<AccessorT, accessor_mode_cap::can_write, sycl::access::target::global_buffer, void>
603+
ESIMD_INLINE EnableIfAccessor<AccessorT, accessor_mode_cap::can_write,
604+
sycl::access::target::global_buffer, void>
601605
simd<T, N>::copy_to(AccessorT acc, uint32_t offset) {
602606
constexpr unsigned Sz = sizeof(T) * N;
603607
static_assert(Sz >= detail::OperandSize::OWORD,

sycl/test/esimd/block_load_store.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
using namespace sycl::INTEL::gpu;
99
using namespace cl::sycl;
1010

11-
SYCL_EXTERNAL void kernel1(accessor<int, 1, access::mode::read_write,
12-
access::target::global_buffer> &buf) SYCL_ESIMD_FUNCTION {
11+
SYCL_EXTERNAL void kernel1(
12+
accessor<int, 1, access::mode::read_write, access::target::global_buffer>
13+
&buf) SYCL_ESIMD_FUNCTION {
1314
simd<int, 32> v1(0, 1);
1415
// expected-warning@+2 {{deprecated}}
1516
// expected-note@CL/sycl/INTEL/esimd/esimd_memory.hpp:188 {{}}

0 commit comments

Comments
 (0)