Skip to content

Commit 589618e

Browse files
[SYCL][NFC] Fix missed formatting (#8890)
For some unknown reason, lint did not run for select files in some of previous commits. This commit amends this. Signed-off-by: Larsen, Steffen <[email protected]>
1 parent 88e459f commit 589618e

File tree

3 files changed

+19
-18
lines changed

3 files changed

+19
-18
lines changed

sycl/include/sycl/ext/intel/experimental/pipes.hpp

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@ class pipe : public pipe_base {
8383
const std::string PipeName = pipe_base::get_pipe_name(HostPipePtr);
8484

8585
event E = Q.submit([=](handler &CGH) {
86-
CGH.ext_intel_read_host_pipe(PipeName, DataPtr, sizeof(_dataT) /* non-blocking */);
86+
CGH.ext_intel_read_host_pipe(PipeName, DataPtr,
87+
sizeof(_dataT) /* non-blocking */);
8788
});
8889
E.wait();
8990
if (E.get_info<sycl::info::event::command_execution_status>() ==
@@ -113,8 +114,8 @@ class pipe : public pipe_base {
113114
void *DataPtr = const_cast<_dataT *>(&Data);
114115

115116
event E = Q.submit([=](handler &CGH) {
116-
CGH.ext_intel_write_host_pipe(
117-
PipeName, DataPtr, sizeof(_dataT) /* non-blocking */);
117+
CGH.ext_intel_write_host_pipe(PipeName, DataPtr,
118+
sizeof(_dataT) /* non-blocking */);
118119
});
119120
E.wait();
120121
Success = E.get_info<sycl::info::event::command_execution_status>() ==
@@ -242,7 +243,7 @@ class pipe : public pipe_base {
242243
const std::string PipeName = pipe_base::get_pipe_name(HostPipePtr);
243244
event E = Q.submit([=](handler &CGH) {
244245
CGH.ext_intel_read_host_pipe(PipeName, DataPtr, sizeof(_dataT),
245-
true /*blocking*/);
246+
true /*blocking*/);
246247
});
247248
E.wait();
248249
return *(_dataT *)DataPtr;
@@ -263,8 +264,8 @@ class pipe : public pipe_base {
263264
const std::string PipeName = pipe_base::get_pipe_name(HostPipePtr);
264265
void *DataPtr = const_cast<_dataT *>(&Data);
265266
event E = Q.submit([=](handler &CGH) {
266-
CGH.ext_intel_write_host_pipe(PipeName, DataPtr,
267-
sizeof(_dataT), true /*blocking */);
267+
CGH.ext_intel_write_host_pipe(PipeName, DataPtr, sizeof(_dataT),
268+
true /*blocking */);
268269
});
269270
E.wait();
270271
}

sycl/include/sycl/handler.hpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,10 @@ class handler;
9696
template <typename T, int Dimensions, typename AllocatorT, typename Enable>
9797
class buffer;
9898

99-
namespace ext::intel::experimental
100-
{
101-
template <class _name, class _dataT, int32_t _min_capacity,
102-
class _propertiesT, class>
103-
class pipe;
99+
namespace ext::intel::experimental {
100+
template <class _name, class _dataT, int32_t _min_capacity, class _propertiesT,
101+
class>
102+
class pipe;
104103
}
105104

106105
namespace detail {
@@ -2901,9 +2900,10 @@ class __SYCL_EXPORT handler {
29012900
friend class ::MockHandler;
29022901
friend class detail::queue_impl;
29032902

2904-
// Make pipe class friend to be able to call ext_intel_read/write_host_pipe method.
2903+
// Make pipe class friend to be able to call ext_intel_read/write_host_pipe
2904+
// method.
29052905
template <class _name, class _dataT, int32_t _min_capacity,
2906-
class _propertiesT, class>
2906+
class _propertiesT, class>
29072907
friend class ext::intel::experimental::pipe;
29082908

29092909
/// Read from a host pipe given a host address and
@@ -2912,8 +2912,8 @@ class __SYCL_EXPORT handler {
29122912
/// expr m_Storage member \param Size the size of data getting read back / to.
29132913
/// /// \param Size the size of data getting read back / to. \param Block
29142914
/// if read opeartion is blocking, default to false.
2915-
void ext_intel_read_host_pipe(const std::string &Name, void *Ptr,
2916-
size_t Size, bool Block=false);
2915+
void ext_intel_read_host_pipe(const std::string &Name, void *Ptr, size_t Size,
2916+
bool Block = false);
29172917

29182918
/// Write to host pipes given a host address and
29192919
/// \param Name name of the host pipe to be passed into lower level runtime
@@ -2922,7 +2922,7 @@ class __SYCL_EXPORT handler {
29222922
/// /// \param Size the size of data write / to. \param Block
29232923
/// if write opeartion is blocking, default to false.
29242924
void ext_intel_write_host_pipe(const std::string &Name, void *Ptr,
2925-
size_t Size, bool Block=false);
2925+
size_t Size, bool Block = false);
29262926

29272927
bool DisableRangeRounding();
29282928

sycl/source/handler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ id<2> handler::computeFallbackKernelBounds(size_t Width, size_t Height) {
864864
}
865865

866866
void handler::ext_intel_read_host_pipe(const std::string &Name, void *Ptr,
867-
size_t Size, bool Block) {
867+
size_t Size, bool Block) {
868868
MImpl->HostPipeName = Name;
869869
MImpl->HostPipePtr = Ptr;
870870
MImpl->HostPipeTypeSize = Size;
@@ -874,7 +874,7 @@ void handler::ext_intel_read_host_pipe(const std::string &Name, void *Ptr,
874874
}
875875

876876
void handler::ext_intel_write_host_pipe(const std::string &Name, void *Ptr,
877-
size_t Size, bool Block) {
877+
size_t Size, bool Block) {
878878
MImpl->HostPipeName = Name;
879879
MImpl->HostPipePtr = Ptr;
880880
MImpl->HostPipeTypeSize = Size;

0 commit comments

Comments
 (0)