Skip to content

Commit fffd4a4

Browse files
committed
Clang format
1 parent 9855f64 commit fffd4a4

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

sycl/test/basic_tests/image/image_read.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ bool test2d_coord(dataT *hostPtr, coordT coord,
112112
#ifdef DEBUG_OUTPUT
113113
std::cout << "Got: " << resultData.r() << ", " << resultData.g()
114114
#endif // DEBUG_OUTPUT
115-
bool correct = true;
115+
bool correct = true;
116116
if (resultData.r() != expectedColour.r())
117117
correct = false;
118118
if (resultData.g() != expectedColour.g())
@@ -245,21 +245,21 @@ bool test() {
245245
int main() {
246246

247247
bool passed = true;
248-
248+
249249
// Half image
250-
if(!test<s::half4, s::image_channel_type::fp16>())
250+
if (!test<s::half4, s::image_channel_type::fp16>())
251251
passed = false;
252252

253253
// Float image
254-
if(!test<s::float4, s::image_channel_type::fp32>())
254+
if (!test<s::float4, s::image_channel_type::fp32>())
255255
passed = false;
256256

257257
// 32-bit signed integer image
258-
if(!test<s::int4, s::image_channel_type::signed_int32>())
258+
if (!test<s::int4, s::image_channel_type::signed_int32>())
259259
passed = false;
260260

261261
// 32-bit unsigned integer image
262-
if(!test<s::uint4, s::image_channel_type::unsigned_int32>())
262+
if (!test<s::uint4, s::image_channel_type::unsigned_int32>())
263263
passed = false;
264264

265265
return passed ? 0 : -1;

sycl/test/basic_tests/image/image_write.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ bool test1d_coord(dataT *hostPtr, coordT coord, dataT colour) {
5555

5656
// Do the test by reading a single pixel from the image
5757
s::queue myQueue(selector);
58-
58+
5959
myQueue.submit([&](s::handler &cgh) {
6060
auto imageAcc = image.get_access<dataT, s::access::mode::write>(cgh);
6161
cgh.single_task<test_1d_write_class<dataT>>([=]() {
@@ -269,21 +269,21 @@ bool test() {
269269
int main() {
270270

271271
bool passed = true;
272-
272+
273273
// Half image
274-
if(!test<s::half4, s::image_channel_type::fp16>())
274+
if (!test<s::half4, s::image_channel_type::fp16>())
275275
passed = false;
276276

277277
// Float image
278-
if(!test<s::float4, s::image_channel_type::fp32>())
278+
if (!test<s::float4, s::image_channel_type::fp32>())
279279
passed = false;
280280

281281
// 32-bit signed integer image
282-
if(!test<s::int4, s::image_channel_type::signed_int32>())
282+
if (!test<s::int4, s::image_channel_type::signed_int32>())
283283
passed = false;
284284

285285
// 32-bit unsigned integer image
286-
if(!test<s::uint4, s::image_channel_type::unsigned_int32>())
286+
if (!test<s::uint4, s::image_channel_type::unsigned_int32>())
287287
passed = false;
288288

289289
return passed ? 0 : -1;

0 commit comments

Comments
 (0)