Skip to content

Commit 1682ee1

Browse files
Code formatting.
1 parent e81a2e9 commit 1682ee1

File tree

8 files changed

+22
-21
lines changed

8 files changed

+22
-21
lines changed

sycl/source/detail/async_alloc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ inline namespace _V1 {
1919
namespace ext::oneapi::experimental {
2020

2121
namespace {
22-
std::vector<ur_event_handle_t>
23-
getUrEvents(const std::pmr::vector<std::shared_ptr<detail::event_impl>> &DepEvents) {
22+
std::vector<ur_event_handle_t> getUrEvents(
23+
const std::pmr::vector<std::shared_ptr<detail::event_impl>> &DepEvents) {
2424
std::vector<ur_event_handle_t> RetUrEvents;
2525
for (const std::shared_ptr<detail::event_impl> &EventImpl : DepEvents) {
2626
ur_event_handle_t Handle = EventImpl->getHandle();

sycl/source/detail/cg.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,8 +180,7 @@ class CG {
180180
MRequirements(std::move(SIH.MRequirements)),
181181
MEvents(SIH.MEvents.begin(), SIH.MEvents.end()) {}
182182
StorageInitHelper(const StorageInitHelper &SIH)
183-
: MArgsStorage(SIH.MArgsStorage),
184-
MAccStorage(SIH.MAccStorage),
183+
: MArgsStorage(SIH.MArgsStorage), MAccStorage(SIH.MAccStorage),
185184
MSharedPtrStorage(SIH.MSharedPtrStorage),
186185
MRequirements(SIH.MRequirements),
187186
MEvents(SIH.MEvents.begin(), SIH.MEvents.end()) {}
@@ -199,8 +198,8 @@ class CG {
199198
std::vector<AccessorImplHost *> MRequirements;
200199

201200
std::array<std::byte, 4 * 1024> MEventsBuf;
202-
std::pmr::monotonic_buffer_resource MEventsBufRes{
203-
MEventsBuf.data(), MEventsBuf.size()};
201+
std::pmr::monotonic_buffer_resource MEventsBufRes{MEventsBuf.data(),
202+
MEventsBuf.size()};
204203

205204
/// List of events that order the execution of this CG
206205
std::pmr::vector<detail::EventImplPtr> MEvents{&MEventsBufRes};

sycl/source/detail/graph_impl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -993,7 +993,8 @@ exec_graph_impl::enqueue(const std::shared_ptr<sycl::detail::queue_impl> &Queue,
993993
auto CurrentPartition = MPartitions[currentPartitionsNum];
994994
// restore initial MEvents to add only needed additional depenencies
995995
if (currentPartitionsNum > 0) {
996-
CGData.MEvents.assign(BackupCGDataMEvents.begin(), BackupCGDataMEvents.end());
996+
CGData.MEvents.assign(BackupCGDataMEvents.begin(),
997+
BackupCGDataMEvents.end());
997998
}
998999

9991000
for (auto const &DepPartition : CurrentPartition->MPredecessors) {

sycl/source/detail/handler_impl.hpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ enum class HandlerSubmissionState : std::uint8_t {
3232
class handler_impl {
3333
public:
3434
handler_impl(queue_impl *SubmissionPrimaryQueue,
35-
queue_impl *SubmissionSecondaryQueue,
36-
bool EventNeeded)
35+
queue_impl *SubmissionSecondaryQueue, bool EventNeeded)
3736
: MSubmissionPrimaryQueue(SubmissionPrimaryQueue),
3837
MSubmissionSecondaryQueue(SubmissionSecondaryQueue),
3938
MEventNeeded(EventNeeded) {};

sycl/source/detail/queue_impl.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,10 @@ event queue_impl::submit_impl(const detail::type_erased_cgfo_ty &CGF,
363363
const detail::code_location &Loc,
364364
bool IsTopCodeLoc,
365365
const SubmissionInfo &SubmitInfo) {
366-
detail::handler_impl HandlerImpl(
367-
PrimaryQueue.get(), SecondaryQueue.get(), CallerNeedsEvent);
368-
handler Handler(&HandlerImpl, const_cast<std::shared_ptr<queue_impl> &>(Self));
366+
detail::handler_impl HandlerImpl(PrimaryQueue.get(), SecondaryQueue.get(),
367+
CallerNeedsEvent);
368+
handler Handler(&HandlerImpl,
369+
const_cast<std::shared_ptr<queue_impl> &>(Self));
369370
Handler.saveCodeLoc(Loc, IsTopCodeLoc);
370371

371372
{

sycl/source/detail/scheduler/commands.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -239,18 +239,17 @@ class Command {
239239
/// Collect UR events from EventImpls and filter out some of them in case of
240240
/// in order queue
241241
template <typename ContT>
242-
std::vector<ur_event_handle_t>
243-
getUrEvents(const ContT &EventImpls) const {
242+
std::vector<ur_event_handle_t> getUrEvents(const ContT &EventImpls) const {
244243
return getUrEvents(EventImpls, MWorkerQueue, isHostTask());
245244
}
246-
245+
247246
static std::vector<ur_event_handle_t>
248247
getUrEvents(const std::vector<EventImplPtr> &EventImpls,
249248
const QueueImplPtr &CommandQueue, bool IsHostTaskCommand);
250249
static std::vector<ur_event_handle_t>
251250
getUrEvents(const std::pmr::vector<EventImplPtr> &EventImpls,
252251
const QueueImplPtr &CommandQueue, bool IsHostTaskCommand);
253-
252+
254253
/// Collect UR events from EventImpls and filter out some of them in case of
255254
/// in order queue. Does blocking enqueue if event is expected to produce ur
256255
/// event but has empty native handle.

sycl/source/detail/scheduler/scheduler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ bool Scheduler::areEventsSafeForSchedulerBypass(
689689
}
690690

691691
bool Scheduler::areEventsSafeForSchedulerBypass(
692-
const std::pmr::vector<EventImplPtr> &DepEvents, ContextImplPtr Context) {
692+
const std::pmr::vector<EventImplPtr> &DepEvents, ContextImplPtr Context) {
693693

694694
return std::all_of(DepEvents.begin(), DepEvents.end(),
695695
[&Context](const EventImplPtr &SyclEventImplPtr) {

sycl/source/handler.cpp

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ handler::handler(detail::handler_impl *HandlerImpl,
324324

325325
static std::shared_ptr<detail::queue_impl> DummyQueue;
326326

327-
handler::handler(detail::handler_impl *HandlerImpl) : impl(HandlerImpl), MQueue(DummyQueue) {}
327+
handler::handler(detail::handler_impl *HandlerImpl)
328+
: impl(HandlerImpl), MQueue(DummyQueue) {}
328329

329330
// Sets the submission state to indicate that an explicit kernel bundle has been
330331
// set. Throws a sycl::exception with errc::invalid if the current state
@@ -1713,8 +1714,8 @@ void handler::ext_oneapi_signal_external_semaphore(
17131714

17141715
void handler::use_kernel_bundle(
17151716
const kernel_bundle<bundle_state::executable> &ExecBundle) {
1716-
if ((!impl->MGraph &&
1717-
(impl->MSubmissionPrimaryQueue->get_context() != ExecBundle.get_context())) ||
1717+
if ((!impl->MGraph && (impl->MSubmissionPrimaryQueue->get_context() !=
1718+
ExecBundle.get_context())) ||
17181719
(impl->MGraph &&
17191720
(impl->MGraph->getContext() != ExecBundle.get_context())))
17201721
throw sycl::exception(
@@ -1723,7 +1724,8 @@ void handler::use_kernel_bundle(
17231724
"context associated with the kernel bundle");
17241725

17251726
if (impl->MSubmissionSecondaryQueue &&
1726-
impl->MSubmissionSecondaryQueue->get_context() != ExecBundle.get_context())
1727+
impl->MSubmissionSecondaryQueue->get_context() !=
1728+
ExecBundle.get_context())
17271729
throw sycl::exception(
17281730
make_error_code(errc::invalid),
17291731
"Context associated with the secondary queue is different from the "

0 commit comments

Comments
 (0)