File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1969,8 +1969,7 @@ cl_int ExecCGCommand::enqueueImp() {
1969
1969
if (HostTask->MQueue == AllocaCmd->getQueue ()) {
1970
1970
auto MemArg =
1971
1971
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));
1974
1973
1975
1974
return ;
1976
1975
}
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ void test1() {
18
18
19
19
Q.submit ([&](handler &CGH) {
20
20
auto Acc = Buffer.get_access <mode::write>(CGH);
21
- CGH.codeplay_host_task ([=]() {
21
+ CGH.codeplay_host_task ([=] {
22
22
// A no-op
23
23
});
24
24
});
@@ -41,7 +41,7 @@ void test2() {
41
41
auto AccSrc = Buffer1.template get_access <mode::read>(CGH);
42
42
auto AccDst = Buffer2.template get_access <mode::write>(CGH);
43
43
44
- CGH.codeplay_host_task ([=]() {
44
+ CGH.codeplay_host_task ([=] {
45
45
for (size_t Idx = 0 ; Idx < AccDst.get_count (); ++Idx)
46
46
AccDst[Idx] = AccSrc[Idx];
47
47
});
You can’t perform that action at this time.
0 commit comments