@@ -529,8 +529,7 @@ Error L0DeviceTy::dataExchangeImpl(const void *SrcPtr, GenericDeviceTy &DstDev,
529529 return Plugin::error (ErrorCode::UNKNOWN, " dataExchangeImpl failed" );
530530 } else {
531531 if (enqueueMemCopy (DstPtr, SrcPtr, Size,
532- /* AsyncInfo */ nullptr ,
533- /* Locked */ false , UseCopyEngine))
532+ /* AsyncInfo */ nullptr , UseCopyEngine))
534533 return Plugin::error (ErrorCode::UNKNOWN, " dataExchangeImpl failed" );
535534 }
536535 return Plugin::success ();
@@ -693,7 +692,7 @@ Error L0DeviceTy::releaseInterop(OmpInteropTy Interop) {
693692}
694693
695694int32_t L0DeviceTy::enqueueMemCopy (void *Dst, const void *Src, size_t Size,
696- __tgt_async_info *AsyncInfo, bool Locked,
695+ __tgt_async_info *AsyncInfo,
697696 bool UseCopyEngine) {
698697 ze_command_list_handle_t CmdList = nullptr ;
699698 ze_command_queue_handle_t CmdQueue = nullptr ;
@@ -717,13 +716,8 @@ int32_t L0DeviceTy::enqueueMemCopy(void *Dst, const void *Src, size_t Size,
717716 CALL_ZE_RET_FAIL (zeCommandListAppendMemoryCopy, CmdList, Dst, Src, Size,
718717 Event, 0 , nullptr );
719718 CALL_ZE_RET_FAIL (zeCommandListClose, CmdList);
720- if (Locked) {
721- CALL_ZE_RET_FAIL (zeCommandQueueExecuteCommandLists, CmdQueue, 1 , &CmdList,
722- nullptr );
723- } else {
724- CALL_ZE_RET_FAIL_MTX (zeCommandQueueExecuteCommandLists, getMutex (),
725- CmdQueue, 1 , &CmdList, nullptr );
726- }
719+ CALL_ZE_RET_FAIL_MTX (zeCommandQueueExecuteCommandLists, getMutex (),
720+ CmdQueue, 1 , &CmdList, nullptr );
727721 CALL_ZE_RET_FAIL (zeCommandQueueSynchronize, CmdQueue, UINT64_MAX);
728722 CALL_ZE_RET_FAIL (zeCommandListReset, CmdList);
729723 }
0 commit comments