@@ -3059,14 +3059,15 @@ ur_result_t ExecCGCommand::enqueueImpCommandBuffer() {
3059
3059
" Can't get memory object due to no allocation available " +
3060
3060
codeToString (UR_RESULT_ERROR_INVALID_MEM_OBJECT));
3061
3061
};
3062
- std::for_each (std::begin (HandlerReq), std::end (HandlerReq), ReqToMemConv);
3062
+ std::for_each (std::begin (HandlerReq), std::end (HandlerReq),
3063
+ std::move (ReqToMemConv));
3063
3064
3064
3065
ur_exp_command_buffer_handle_t InteropCommandBuffer =
3065
3066
ChildCommandBuffer ? ChildCommandBuffer : MCommandBuffer;
3066
- interop_handle IH{ReqToMem, MQueue, DeviceImpl, ContextImpl,
3067
+ interop_handle IH{std::move ( ReqToMem) , MQueue, DeviceImpl, ContextImpl,
3067
3068
InteropCommandBuffer};
3068
3069
CommandBufferNativeCommandData CustomOpData{
3069
- IH , HostTask->MHostTask ->MInteropTask };
3070
+ std::move (IH) , HostTask->MHostTask ->MInteropTask };
3070
3071
3071
3072
#ifndef __INTEL_PREVIEW_BREAKING_CHANGES
3072
3073
// CMPLRLLVM-66082
@@ -3397,7 +3398,8 @@ ur_result_t ExecCGCommand::enqueueImpQueue() {
3397
3398
" Can't get memory object due to no allocation available " +
3398
3399
codeToString (UR_RESULT_ERROR_INVALID_MEM_OBJECT));
3399
3400
};
3400
- std::for_each (std::begin (HandlerReq), std::end (HandlerReq), ReqToMemConv);
3401
+ std::for_each (std::begin (HandlerReq), std::end (HandlerReq),
3402
+ std::move (ReqToMemConv));
3401
3403
std::sort (std::begin (ReqToMem), std::end (ReqToMem));
3402
3404
}
3403
3405
@@ -3462,12 +3464,13 @@ ur_result_t ExecCGCommand::enqueueImpQueue() {
3462
3464
" Can't get memory object due to no allocation available " +
3463
3465
codeToString (UR_RESULT_ERROR_INVALID_MEM_OBJECT));
3464
3466
};
3465
- std::for_each (std::begin (HandlerReq), std::end (HandlerReq), ReqToMemConv);
3467
+ std::for_each (std::begin (HandlerReq), std::end (HandlerReq),
3468
+ std::move (ReqToMemConv));
3466
3469
std::sort (std::begin (ReqToMem), std::end (ReqToMem));
3467
3470
}
3468
3471
3469
3472
EnqueueNativeCommandData CustomOpData{
3470
- interop_handle{ReqToMem, HostTask->MQueue ,
3473
+ interop_handle{std::move ( ReqToMem) , HostTask->MQueue ,
3471
3474
HostTask->MQueue ->getDeviceImplPtr (),
3472
3475
HostTask->MQueue ->getContextImplPtr ()},
3473
3476
HostTask->MHostTask ->MInteropTask };
0 commit comments