mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 01:48:50 +08:00
fix: resolve builtins depending on the product
Related-To: NEO-6875 Signed-off-by: Naklicki, Mateusz <mateusz.naklicki@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
5897ddda47
commit
20862ad8fd
@@ -21,6 +21,7 @@
|
||||
#include "shared/source/memory_manager/graphics_allocation.h"
|
||||
#include "shared/source/memory_manager/memory_manager.h"
|
||||
#include "shared/source/program/program_info.h"
|
||||
#include "shared/source/release_helper/release_helper.h"
|
||||
|
||||
#include "RelocationInfo.h"
|
||||
|
||||
@@ -326,7 +327,13 @@ LinkingStatus Linker::link(const SegmentInfo &globalVariablesSegInfo, const Segm
|
||||
removeLocalSymbolsFromRelocatedSymbols();
|
||||
|
||||
resolveImplicitArgs(kernelDescriptors, pDevice);
|
||||
resolveBuiltins(pDevice, outUnresolvedExternals, instructionsSegments);
|
||||
|
||||
auto &productHelper = pDevice->getProductHelper();
|
||||
auto releaseHelper = pDevice->getReleaseHelper();
|
||||
if (productHelper.isResolvingBuiltinsNeeded(releaseHelper)) {
|
||||
resolveBuiltins(pDevice, outUnresolvedExternals, instructionsSegments);
|
||||
}
|
||||
|
||||
if (initialUnresolvedExternalsCount < outUnresolvedExternals.size()) {
|
||||
return LinkingStatus::LinkedPartially;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user