Skip to content

Commit 1414247

Browse files
Register ELF before transferring ISA to Allocation
Related-To: NEO-5857 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
1 parent bb53de1 commit 1414247

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

level_zero/core/source/kernel/kernel_imp.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -114,15 +114,6 @@ void KernelImmutableData::initialize(NEO::KernelInfo *kernelInfo, Device *device
114114
{neoDevice->getRootDeviceIndex(), kernelIsaSize, allocType, neoDevice->getDeviceBitfield()});
115115
UNRECOVERABLE_IF(allocation == nullptr);
116116

117-
auto &hwInfo = neoDevice->getHardwareInfo();
118-
auto &hwHelper = NEO::HwHelper::get(hwInfo.platform.eRenderCoreFamily);
119-
120-
if (kernelInfo->heapInfo.pKernelHeap != nullptr && internalKernel == false) {
121-
NEO::MemoryTransferHelper::transferMemoryToAllocation(hwHelper.isBlitCopyRequiredForLocalMemory(hwInfo, *allocation),
122-
*neoDevice, allocation, 0, kernelInfo->heapInfo.pKernelHeap,
123-
static_cast<size_t>(kernelIsaSize));
124-
}
125-
126117
isaGraphicsAllocation.reset(allocation);
127118

128119
if (neoDevice->getDebugger() && kernelInfo->kernelDescriptor.external.debugData.get()) {
@@ -132,6 +123,15 @@ void KernelImmutableData::initialize(NEO::KernelInfo *kernelInfo, Device *device
132123
}
133124
}
134125

126+
auto &hwInfo = neoDevice->getHardwareInfo();
127+
auto &hwHelper = NEO::HwHelper::get(hwInfo.platform.eRenderCoreFamily);
128+
129+
if (kernelInfo->heapInfo.pKernelHeap != nullptr && internalKernel == false) {
130+
NEO::MemoryTransferHelper::transferMemoryToAllocation(hwHelper.isBlitCopyRequiredForLocalMemory(hwInfo, *allocation),
131+
*neoDevice, allocation, 0, kernelInfo->heapInfo.pKernelHeap,
132+
static_cast<size_t>(kernelIsaSize));
133+
}
134+
135135
this->crossThreadDataSize = this->kernelDescriptor->kernelAttributes.crossThreadDataSize;
136136

137137
ArrayRef<uint8_t> crossThredDataArrayRef;

0 commit comments

Comments
 (0)