Skip to content

Commit d4eba22

Browse files
committed
address @alexbatashev comments
Signed-off-by: Soumi Manna <[email protected]>
1 parent 8b7a71c commit d4eba22

18 files changed

+71
-38
lines changed

sycl/test/inline-asm/asm_16_empty.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ struct KernelFunctor : WithOutputBuffer<T> {
1919
void operator()(cl::sycl::handler &cgh) {
2020
auto C = this->getOutputBuffer().template get_access<cl::sycl::access::mode::write>(cgh);
2121
cgh.parallel_for<KernelFunctor<T>>(
22-
cl::sycl::range<1>{this->getOutputBufferSize()}, [=
23-
](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
22+
// clang-format off
23+
cl::sycl::range<1>{this->getOutputBufferSize()},
24+
[=](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
25+
// clang-format on
2426
C[wiID] = 43;
2527
#if defined(INLINE_ASM) && defined(__SYCL_DEVICE_ONLY__)
2628
asm volatile("");

sycl/test/inline-asm/asm_16_matrix_mult.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ struct KernelFunctor : WithOutputBuffer<T> {
1919
void operator()(cl::sycl::handler &cgh) {
2020
auto C = this->getOutputBuffer().template get_access<cl::sycl::access::mode::write>(cgh);
2121
cgh.parallel_for<KernelFunctor<T>>(
22-
cl::sycl::range<1>{this->getOutputBufferSize()}, [=
23-
](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
22+
// clang-format off
23+
cl::sycl::range<1>{this->getOutputBufferSize()},
24+
[=](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
25+
// clang-format on
2426
volatile int output = 0;
2527
#if defined(INLINE_ASM) && defined(__SYCL_DEVICE_ONLY__)
2628
asm volatile("mov (M1,16) %0(0,0)<1> 0x7:d"

sycl/test/inline-asm/asm_16_no_input_int.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ struct KernelFunctor : WithOutputBuffer<T> {
1919
void operator()(cl::sycl::handler &cgh) {
2020
auto C = this->getOutputBuffer().template get_access<cl::sycl::access::mode::write>(cgh);
2121
cgh.parallel_for<KernelFunctor<T>>(
22-
cl::sycl::range<1>{this->getOutputBufferSize()}, [=
23-
](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
22+
// clang-format off
23+
cl::sycl::range<1>{this->getOutputBufferSize()},
24+
[=](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
25+
// clang-format on
2426
volatile int output = 0;
2527
#if defined(INLINE_ASM) && defined(__SYCL_DEVICE_ONLY__)
2628
asm volatile("mov (M1,16) %0(0,0)<1> 0x7:d"

sycl/test/inline-asm/asm_16_no_opts.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ struct KernelFunctor : WithOutputBuffer<T> {
1919
void operator()(cl::sycl::handler &cgh) {
2020
auto C = this->getOutputBuffer().template get_access<cl::sycl::access::mode::write>(cgh);
2121
cgh.parallel_for<KernelFunctor<T>>(
22-
cl::sycl::range<1>{this->getOutputBufferSize()}, [=
23-
](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
22+
// clang-format off
23+
cl::sycl::range<1>{this->getOutputBufferSize()},
24+
[=](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
25+
// clang-format on
2426
for (int i = 0; i < 10; ++i) {
2527
#if defined(INLINE_ASM) && defined(__SYCL_DEVICE_ONLY__)
2628
asm("fence_sw");

sycl/test/inline-asm/asm_8_empty.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ struct KernelFunctor : WithOutputBuffer<T> {
1919
void operator()(cl::sycl::handler &cgh) {
2020
auto C = this->getOutputBuffer().template get_access<cl::sycl::access::mode::write>(cgh);
2121
cgh.parallel_for<KernelFunctor<T>>(
22-
cl::sycl::range<1>{this->getOutputBufferSize()}, [=
23-
](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
22+
// clang-format off
23+
cl::sycl::range<1>{this->getOutputBufferSize()},
24+
[=](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
25+
// clang-format on
2426
C[wiID] = 43;
2527
#if defined(INLINE_ASM) && defined(__SYCL_DEVICE_ONLY__)
2628
asm volatile("");

sycl/test/inline-asm/asm_8_no_input_int.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ struct KernelFunctor : WithOutputBuffer<T> {
1919
void operator()(cl::sycl::handler &cgh) {
2020
auto C = this->getOutputBuffer().template get_access<cl::sycl::access::mode::write>(cgh);
2121
cgh.parallel_for<KernelFunctor<T>>(
22-
cl::sycl::range<1>{this->getOutputBufferSize()}, [=
23-
](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
22+
// clang-format off
23+
cl::sycl::range<1>{this->getOutputBufferSize()},
24+
[=](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
25+
// clang-format on
2426
volatile int output = 0;
2527
#if defined(INLINE_ASM) && defined(__SYCL_DEVICE_ONLY__)
2628
asm volatile("mov (M1,8) %0(0,0)<1> 0x7:d"

sycl/test/inline-asm/asm_decl_in_scope.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@ struct KernelFunctor : WithInputBuffers<T, 2>, WithOutputBuffer<T> {
2222
auto C = this->getOutputBuffer().template get_access<cl::sycl::access::mode::write>(cgh);
2323

2424
cgh.parallel_for<KernelFunctor<T>>(
25-
cl::sycl::range<1>{this->getOutputBufferSize()}, [=
26-
](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
25+
// clang-format off
26+
cl::sycl::range<1>{this->getOutputBufferSize()},
27+
[=](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(16)]] {
28+
// clang-format on
2729
// declaration of temp within and outside the scope
2830
#if defined(INLINE_ASM) && defined(__SYCL_DEVICE_ONLY__)
2931
asm("{\n"

sycl/test/inline-asm/asm_float_add.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ struct KernelFunctor : WithInputBuffers<T, 2>, WithOutputBuffer<T> {
2323
auto C = this->getOutputBuffer().template get_access<cl::sycl::access::mode::write>(cgh);
2424

2525
cgh.parallel_for<KernelFunctor<T>>(
26-
cl::sycl::range<1>{this->getOutputBufferSize()}, [=
27-
](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
26+
// clang-format off
27+
cl::sycl::range<1>{this->getOutputBufferSize()},
28+
[=](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
29+
// clang-format on
2830
#if defined(INLINE_ASM) && defined(__SYCL_DEVICE_ONLY__)
2931
asm("add (M1, 8) %0(0, 0)<1> %1(0, 0)<1;1,0> %2(0, 0)<1;1,0>"
3032
: "=rw"(C[wiID])

sycl/test/inline-asm/asm_float_neg.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ struct KernelFunctor : WithInputBuffers<T, 1>, WithOutputBuffer<T> {
2121
auto B = this->getOutputBuffer().template get_access<cl::sycl::access::mode::write>(cgh);
2222

2323
cgh.parallel_for<KernelFunctor<T>>(
24-
cl::sycl::range<1>{this->getOutputBufferSize()}, [=
25-
](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
24+
// clang-format off
25+
cl::sycl::range<1>{this->getOutputBufferSize()},
26+
[=](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
27+
// clang-format on
2628
#if defined(INLINE_ASM) && defined(__SYCL_DEVICE_ONLY__)
2729
asm("mov (M1, 8) %0(0, 0)<1> (-)%1(0, 0)<1;1,0>"
2830
: "=rw"(B[wiID])

sycl/test/inline-asm/asm_mul.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ struct KernelFunctor : WithInputBuffers<T, 2>, WithOutputBuffer<T> {
2121
auto C = this->getOutputBuffer().template get_access<cl::sycl::access::mode::write>(cgh);
2222

2323
cgh.parallel_for<KernelFunctor<T>>(
24-
cl::sycl::range<1>{this->getOutputBufferSize()}, [=
25-
](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
24+
// clang-format off
25+
cl::sycl::range<1>{this->getOutputBufferSize()},
26+
[=](cl::sycl::id<1> wiID) [[intel::reqd_sub_group_size(8)]] {
27+
// clang-format on
2628
#if defined(INLINE_ASM) && defined(__SYCL_DEVICE_ONLY__)
2729
asm("mul (M1, 8) %0(0, 0)<1> %1(0, 0)<1;1,0> %2(0, 0)<1;1,0>"
2830
: "=rw"(C[wiID])

0 commit comments

Comments
 (0)