mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
performance: remove redundant vector
Related-To: NEO-15498 Signed-off-by: Michal Mrozek <michal.mrozek@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
86b5660c23
commit
aa8ab38156
@@ -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
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user