Skip to content

Commit ae3f22f

Browse files
committed
formatting
1 parent f5bf915 commit ae3f22f

File tree

6 files changed

+16
-22
lines changed

6 files changed

+16
-22
lines changed

sycl/source/detail/graph/graph_impl.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,8 +1026,8 @@ EventImplPtr exec_graph_impl::enqueuePartitionDirectly(
10261026

10271027
if (!EventNeeded) {
10281028
Queue.getAdapter().call<sycl::detail::UrApiKind::urEnqueueCommandBufferExp>(
1029-
Queue.getHandleRef(), Partition->MCommandBuffer,
1030-
UrEnqueueWaitListSize, UrEnqueueWaitList, nullptr);
1029+
Queue.getHandleRef(), Partition->MCommandBuffer, UrEnqueueWaitListSize,
1030+
UrEnqueueWaitList, nullptr);
10311031
return nullptr;
10321032
} else {
10331033
auto NewEvent = sycl::detail::event_impl::create_device_event(Queue);
@@ -1036,8 +1036,8 @@ EventImplPtr exec_graph_impl::enqueuePartitionDirectly(
10361036
NewEvent->setSubmissionTime();
10371037
ur_event_handle_t UrEvent = nullptr;
10381038
Queue.getAdapter().call<sycl::detail::UrApiKind::urEnqueueCommandBufferExp>(
1039-
Queue.getHandleRef(), Partition->MCommandBuffer,
1040-
UrEventHandles.size(), UrEnqueueWaitList, &UrEvent);
1039+
Queue.getHandleRef(), Partition->MCommandBuffer, UrEventHandles.size(),
1040+
UrEnqueueWaitList, &UrEvent);
10411041
NewEvent->setHandle(UrEvent);
10421042
NewEvent->setEventFromSubmittedExecCommandBuffer(true);
10431043
return NewEvent;

sycl/source/detail/handler_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ class handler_impl {
204204

205205
/// If we are submitting a graph using ext_oneapi_graph this will be the graph
206206
/// to be executed.
207-
ext::oneapi::experimental::detail::exec_graph_impl* MExecGraph;
207+
ext::oneapi::experimental::detail::exec_graph_impl *MExecGraph;
208208
/// Storage for the CG created when handling graph nodes added explicitly.
209209
std::unique_ptr<detail::CG> MGraphNodeCG;
210210
/// Storage for node dependencies passed when adding a graph node explicitly

sycl/source/detail/queue_impl.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ class queue_impl : public std::enable_shared_from_this<queue_impl> {
276276
ur_native_handle_t nativeHandle = 0;
277277
getAdapter().call<UrApiKind::urQueueGetNativeHandle>(MQueue, nullptr,
278278
&nativeHandle);
279-
__SYCL_OCL_CALL(clRetainCommandQueue, ur::cast<cl_command_queue>(nativeHandle));
279+
__SYCL_OCL_CALL(clRetainCommandQueue,
280+
ur::cast<cl_command_queue>(nativeHandle));
280281
return ur::cast<cl_command_queue>(nativeHandle);
281282
}
282283

@@ -1052,9 +1053,7 @@ class queue_impl : public std::enable_shared_from_this<queue_impl> {
10521053
}
10531054

10541055
// To use when the queue is already acquired a mutex lock.
1055-
DataType read_unlocked() {
1056-
return MData;
1057-
}
1056+
DataType read_unlocked() { return MData; }
10581057
};
10591058

10601059
const bool MIsInorder;

sycl/source/handler.cpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,7 @@ event handler::finalize() {
483483
// According to 4.7.6.9 of SYCL2020 spec, if a placeholder accessor is passed
484484
// to a command without being bound to a command group, an exception should
485485
// be thrown.
486-
if (!IsGraphEnqueue)
487-
{
486+
if (!IsGraphEnqueue) {
488487
for (const auto &arg : impl->MArgs) {
489488
if (arg.MType != detail::kernel_param_kind_t::kind_accessor)
490489
continue;
@@ -585,8 +584,8 @@ event handler::finalize() {
585584
// the graph is not changed, then this faster path is used to submit
586585
// kernel bypassing scheduler and avoiding CommandGroup, Command objects
587586
// creation.
588-
std::vector<ur_event_handle_t> RawEvents = detail::Command::getUrEvents(
589-
impl->CGData.MEvents, Queue, false);
587+
std::vector<ur_event_handle_t> RawEvents =
588+
detail::Command::getUrEvents(impl->CGData.MEvents, Queue, false);
590589

591590
bool DiscardEvent =
592591
!impl->MEventNeeded && impl->get_queue().supportsDiscardingPiEvents();
@@ -616,9 +615,8 @@ event handler::finalize() {
616615
StreamID = xptiRegisterStream(detail::SYCL_STREAM_NAME);
617616
std::tie(CmdTraceEvent, InstanceID) = emitKernelInstrumentationData(
618617
StreamID, MKernel, MCodeLoc, impl->MIsTopCodeLoc,
619-
MKernelName.data(), impl->MKernelNameBasedCachePtr,
620-
Queue, impl->MNDRDesc, KernelBundleImpPtr,
621-
impl->MArgs);
618+
MKernelName.data(), impl->MKernelNameBasedCachePtr, Queue,
619+
impl->MNDRDesc, KernelBundleImpPtr, impl->MArgs);
622620
detail::emitInstrumentationGeneral(StreamID, InstanceID,
623621
CmdTraceEvent,
624622
xpti::trace_task_begin, nullptr);
@@ -816,7 +814,8 @@ event handler::finalize() {
816814
// pass the exec_graph_impl and event dependencies. Since this subgraph CG
817815
// will not be executed this is fine.
818816
CommandGroup.reset(new sycl::detail::CGExecCommandBuffer(
819-
nullptr, impl->MExecGraph->shared_from_this(), std::move(impl->CGData)));
817+
nullptr, impl->MExecGraph->shared_from_this(),
818+
std::move(impl->CGData)));
820819

821820
} else {
822821
bool DiscardEvent = !impl->MEventNeeded &&

sycl/test-e2e/Graph/RecordReplay/ext_oneapi_enqueue_functions.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ int main() {
1515

1616
using namespace std::chrono;
1717

18-
19-
2018
queue InOrderQueue{property::queue::in_order{}};
2119

2220
using T = int;
@@ -65,8 +63,6 @@ int main() {
6563
free(PtrB, InOrderQueue);
6664
free(PtrC, InOrderQueue);
6765

68-
69-
7066
for (size_t i = 0; i < Size; i++) {
7167
T Ref = Pattern * i;
7268
assert(check_value(i, Ref, Output[i], "Output"));

sycl/unittests/scheduler/InOrderQueueSyncCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class LimitedHandler {
6161
handler_impl(std::shared_ptr<MockQueueImpl> Queue) : MQueue(Queue) {}
6262
std::shared_ptr<MockQueueImpl> MQueue;
6363
MockQueueImpl &get_queue() { return *MQueue; }
64-
ext::oneapi::experimental::detail::exec_graph_impl* MExecGraph;
64+
ext::oneapi::experimental::detail::exec_graph_impl *MExecGraph;
6565
};
6666
std::shared_ptr<handler_impl> impl;
6767
std::shared_ptr<detail::kernel_impl> MKernel;

0 commit comments

Comments
 (0)