mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 01:48:50 +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
@@ -68,7 +68,7 @@ bool KernelInfo::createKernelAllocation(const Device &device, bool internalIsa)
|
||||
|
||||
if (device.getMemoryManager()->isKernelBinaryReuseEnabled()) {
|
||||
auto lock = device.getMemoryManager()->lockKernelAllocationMap();
|
||||
auto kernelName = this->kernelDescriptor.kernelMetadata.kernelName;
|
||||
const auto &kernelName = this->kernelDescriptor.kernelMetadata.kernelName;
|
||||
auto &storedAllocations = device.getMemoryManager()->getKernelAllocationMap();
|
||||
auto kernelAllocations = storedAllocations.find(kernelName);
|
||||
if (kernelAllocations != storedAllocations.end()) {
|
||||
|
||||
Reference in New Issue
Block a user