Skip to content

Commit 17c8e31

Browse files
committed
remove unused argument
1 parent ac62231 commit 17c8e31

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

offload/plugins-nextgen/level_zero/include/L0Device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ class L0DeviceTy final : public GenericDeviceTy {
504504
/// Enqueue copy command
505505
int32_t enqueueMemCopy(void *Dst, const void *Src, size_t Size,
506506
__tgt_async_info *AsyncInfo = nullptr,
507-
bool Locked = false, bool UseCopyEngine = true);
507+
bool UseCopyEngine = true);
508508

509509
/// Enqueue asynchronous copy command
510510
int32_t enqueueMemCopyAsync(void *Dst, const void *Src, size_t Size,

offload/plugins-nextgen/level_zero/src/L0Device.cpp

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -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

695694
int32_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

Comments
 (0)