mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
Patch global variables and constants once
This change replaces mechanism of patching global constants and variables in kernel per relocation to patching them only once. This would improve linking time performance for kernels with multiple global symbols. Signed-off-by: Luzynski, Sebastian Jozef <sebastian.jozef.luzynski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
257967e2f6
commit
91c69e0fe7
@@ -893,7 +893,9 @@ bool ModuleImp::linkBinary() {
|
||||
globalsForPatching, constantsForPatching,
|
||||
isaSegmentsForPatching, unresolvedExternalsInfo, this->device->getNEODevice(),
|
||||
translationUnit->programInfo.globalConstants.initData,
|
||||
translationUnit->programInfo.globalConstants.size,
|
||||
translationUnit->programInfo.globalVariables.initData,
|
||||
translationUnit->programInfo.globalVariables.size,
|
||||
kernelDescriptors, translationUnit->programInfo.externalFunctions);
|
||||
this->symbols = linker.extractRelocatedSymbols();
|
||||
if (LinkingStatus::LinkedFully != linkStatus) {
|
||||
|
||||
Reference in New Issue
Block a user