Skip to content

Commit 67836cc

Browse files
committed
Fix clang-format and apply comments
1 parent c560a62 commit 67836cc

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

sycl/include/CL/sycl/detail/pi.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -371,17 +371,17 @@ class DeviceBinaryImage {
371371
/// range, the name of the property is the specialization constant symbolic ID
372372
/// and the value is a list of tuples of 32-bit unsigned integer values, which
373373
/// encode scalar specialization constants, that form the composite one.
374-
/// Each tuple consist of ID of scalar specialization constant, its location
374+
/// Each tuple consists of ID of scalar specialization constant, its location
375375
/// within a composite (offset in bytes from the beginning) and its size.
376376
/// For example, for the following structure:
377377
/// struct A { int a; float b; };
378378
/// struct POD { A a[2]; int b; };
379379
/// List of tuples will look like:
380380
/// { ID0, 0, 4 }, // .a[0].a
381-
// { ID1, 4, 4 }, // .a[0].b
382-
// { ID2, 8, 4 }, // .a[1].a
383-
// { ID3, 12, 4 }, // .a[1].b
384-
// { ID4, 16, 4 }, // .b
381+
/// { ID1, 4, 4 }, // .a[0].b
382+
/// { ID2, 8, 4 }, // .a[1].a
383+
/// { ID3, 12, 4 }, // .a[1].b
384+
/// { ID4, 16, 4 }, // .b
385385
const PropertyRange &getCompositeSpecConstants() const {
386386
return CompositeSpecConstIDMap;
387387
}

sycl/source/detail/program_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ void program_impl::flush_spec_constants(const RTDeviceBinaryImage &Img,
561561
// location of scalar member within the composite; size of a scalar member
562562
// of the composite.
563563
assert(((Descriptors.size() - 8) / sizeof(std::uint32_t)) % 3 == 0 &&
564-
"unexpected layout of composite spec const descriptors");
564+
"unexpected layout of composite spec const descriptors");
565565
auto *It = reinterpret_cast<const std::uint32_t *>(&Descriptors[8]);
566566
auto *End = reinterpret_cast<const std::uint32_t *>(&Descriptors[0] +
567567
Descriptors.size());

sycl/source/detail/spec_constant_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
#include <CL/sycl/stl.hpp>
1414

1515
#include <iostream>
16-
#include <vector>
1716
#include <map>
17+
#include <vector>
1818

1919
__SYCL_INLINE_NAMESPACE(cl) {
2020
namespace sycl {

0 commit comments

Comments
 (0)