performance: remove redundant vector

Related-To: NEO-15498
Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
Michal Mrozek
2025-07-21 10:36:21 +00:00
committed by Compute-Runtime-Automation
parent 86b5660c23
commit aa8ab38156
2 changed files with 2 additions and 7 deletions

View File

@@ -68,12 +68,7 @@ ze_result_t ZE_APICALL zeCommandListUpdateMutableCommandKernelsExp(
uint64_t *pCommandId,
ze_kernel_handle_t *phKernels) {
hCommandList = toInternalType(hCommandList);
hCommandList = toInternalType(hCommandList);
std::vector<ze_kernel_handle_t> translatedKernels{};
for (auto i = 0u; i < numKernels; i++) {
translatedKernels.push_back(toInternalType(phKernels[i]));
}
return L0::MCL::MutableCommandList::fromHandle(hCommandList)->updateMutableCommandKernelsExp(numKernels, pCommandId, translatedKernels.data());
return L0::MCL::MutableCommandList::fromHandle(hCommandList)->updateMutableCommandKernelsExp(numKernels, pCommandId, phKernels);
}
} // namespace L0

View File

@@ -613,7 +613,7 @@ ze_result_t MutableCommandListImp::updateMutableCommandKernelsExp(uint32_t numKe
PRINT_DEBUG_STRING(NEO::debugManager.flags.PrintMclData.get(), stderr, "MCL updateMutableCommandKernelsExp cmdlist: %p numKernels: %u\n", this, numKernels);
for (uint32_t id = 0; id < numKernels; id++) {
auto commandId = pCommandId[id];
auto kernelHandle = phKernels[id];
auto kernelHandle = toInternalType(phKernels[id]);
auto kernel = Kernel::fromHandle(kernelHandle);
AppendMutation &selectedAppend = this->mutations[(commandId - 1)];
if (!kernelInstructionMutationEnabled(selectedAppend.mutationFlags)) {