mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-31 03:20:47 +08:00
fix: use const auto& to avoid unnecessary copies
Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
dfd926a9c6
commit
8cf8fe4f5a
@@ -354,7 +354,7 @@ void Program::cleanCurrentKernelInfo(uint32_t rootDeviceIndex) {
|
||||
|
||||
if (executionEnvironment.memoryManager->isKernelBinaryReuseEnabled()) {
|
||||
auto lock = executionEnvironment.memoryManager->lockKernelAllocationMap();
|
||||
auto kernelName = kernelInfo->kernelDescriptor.kernelMetadata.kernelName;
|
||||
const auto &kernelName = kernelInfo->kernelDescriptor.kernelMetadata.kernelName;
|
||||
auto &storedBinaries = executionEnvironment.memoryManager->getKernelAllocationMap();
|
||||
auto kernelAllocations = storedBinaries.find(kernelName);
|
||||
if (kernelAllocations != storedBinaries.end()) {
|
||||
|
||||
Reference in New Issue
Block a user