Skip to content

Commit e5c6cf5

Browse files
author
Sergey Kanaev
committed
[SYCL] Stylistic changes
Signed-off-by: Sergey Kanaev <[email protected]>
1 parent 7813bb6 commit e5c6cf5

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

sycl/source/detail/scheduler/commands.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,8 +1969,7 @@ cl_int ExecCGCommand::enqueueImp() {
19691969
if (HostTask->MQueue == AllocaCmd->getQueue()) {
19701970
auto MemArg =
19711971
reinterpret_cast<pi_mem>(AllocaCmd->getMemAllocation());
1972-
interop_handle::ReqToMem ReqToMemEl = std::make_pair(Req, MemArg);
1973-
ReqToMem.emplace_back(ReqToMemEl);
1972+
ReqToMem.emplace_back(std::make_pair(Req, MemArg));
19741973

19751974
return;
19761975
}

sycl/test/host-interop-task/host-task.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ void test1() {
1818

1919
Q.submit([&](handler &CGH) {
2020
auto Acc = Buffer.get_access<mode::write>(CGH);
21-
CGH.codeplay_host_task([=]() {
21+
CGH.codeplay_host_task([=] {
2222
// A no-op
2323
});
2424
});
@@ -41,7 +41,7 @@ void test2() {
4141
auto AccSrc = Buffer1.template get_access<mode::read>(CGH);
4242
auto AccDst = Buffer2.template get_access<mode::write>(CGH);
4343

44-
CGH.codeplay_host_task([=]() {
44+
CGH.codeplay_host_task([=] {
4545
for (size_t Idx = 0; Idx < AccDst.get_count(); ++Idx)
4646
AccDst[Idx] = AccSrc[Idx];
4747
});

0 commit comments

Comments
 (0)