Skip to content

Commit 7957b00

Browse files
committed
fix formatting
1 parent aa97bd5 commit 7957b00

File tree

4 files changed

+11
-12
lines changed

4 files changed

+11
-12
lines changed

clang/lib/Sema/SemaSYCLDeclAttr.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ void SemaSYCL::checkDeprecatedSYCLAttributeSpelling(const ParsedAttr &A,
133133
}
134134

135135
// Additionally, diagnose deprecated [[intel::reqd_sub_group_size]] spelling
136-
if (A.getKind() == ParsedAttr::AT_IntelReqdSubGroupSize &&
137-
A.getScopeName() && A.getScopeName()->isStr("intel")) {
136+
if (A.getKind() == ParsedAttr::AT_IntelReqdSubGroupSize && A.getScopeName() &&
137+
A.getScopeName()->isStr("intel")) {
138138
diagnoseDeprecatedAttribute(A, "sycl", "reqd_sub_group_size");
139139
return;
140140
}

sycl/test-e2e/SubGroupMask/GroupSize.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ template <size_t SGSize> void test(queue Queue) {
3737
auto resacc = resbuf.template get_access<access::mode::read_write>(cgh);
3838

3939
cgh.parallel_for<sycl_subgr<SGSize>>(
40-
NdRange, [=
41-
](nd_item<1> NdItem) [[sycl::reqd_sub_group_size(SGSize)]] {
40+
NdRange,
41+
[=](nd_item<1> NdItem) [[sycl::reqd_sub_group_size(SGSize)]] {
4242
auto SG = NdItem.get_sub_group();
4343
auto LID = SG.get_local_id();
4444
auto SGID = SG.get_group_id();

sycl/test/extensions/inline_asm.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ int main() {
3838
auto B = BufB.get_access<sycl::access::mode::read>(cgh);
3939
auto C = BufC.get_access<sycl::access::mode::write>(cgh);
4040
cgh.parallel_for<class FillBuffer>(
41-
sycl::range<1>{DEFAULT_PROBLEM_SIZE}, [=
42-
](sycl::id<1> wiID) [[sycl::reqd_sub_group_size(8)]] {
41+
sycl::range<1>{DEFAULT_PROBLEM_SIZE},
42+
[=](sycl::id<1> wiID) [[sycl::reqd_sub_group_size(8)]] {
4343
#if defined(__SYCL_DEVICE_ONLY__)
4444
asm volatile(
4545
".decl P1 v_type=P num_elts=8\n"
@@ -58,10 +58,10 @@ int main() {
5858
: "+rw"(C[wiID])
5959
: "rw"(A[wiID]), "rw"(B[wiID]));
6060
#else
61-
C[wiID] = 0;
62-
for (int i = 0; i < A[wiID]; ++i) {
63-
C[wiID] = C[wiID] + B[wiID];
64-
}
61+
C[wiID] = 0;
62+
for (int i = 0; i < A[wiID]; ++i) {
63+
C[wiID] = C[wiID] + B[wiID];
64+
}
6565
#endif
6666
});
6767
});

sycl/test/warnings/warnings.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
using namespace sycl;
77

8-
98
int main() {
109
vec<long, 4> newVec;
1110
queue myQueue;
@@ -41,4 +40,4 @@ template class device_image<bundle_state::input>;
4140
template class device_image<bundle_state::object>;
4241
template class device_image<bundle_state::executable>;
4342

44-
}
43+
} // namespace sycl

0 commit comments

Comments
 (0)