fix: add check for igc compatibility without checking icbe

Related-To: NEO-7904
Signed-off-by: Katarzyna Cencelewska <katarzyna.cencelewska@intel.com>
This commit is contained in:
Katarzyna Cencelewska
2023-05-23 17:14:25 +00:00
committed by Compute-Runtime-Automation
parent 814de81aca
commit 6e93dd8068
3 changed files with 33 additions and 5 deletions

View File

@@ -370,17 +370,18 @@ CIF::RAII::UPtr_t<IGC::IgcFeaturesAndWorkaroundsTagOCL> CompilerInterface::getIg
}
bool CompilerInterface::loadFcl() {
return NEO::loadCompiler(Os::frontEndDllName, fclLib, fclMain);
return NEO::loadCompiler<IGC::FclOclDeviceCtx>(Os::frontEndDllName, fclLib, fclMain);
}
bool CompilerInterface::loadIgc() {
return NEO::loadCompiler(Os::igcDllName, igcLib, igcMain);
return NEO::loadCompiler<IGC::IgcOclDeviceCtx>(Os::igcDllName, igcLib, igcMain);
}
bool CompilerInterface::initialize(std::unique_ptr<CompilerCache> &&cache, bool requireFcl) {
bool fclAvailable = requireFcl ? this->loadFcl() : false;
bool igcAvailable = this->loadIgc();
bool compilerVersionCorrect = true;
if (!DebugManager.flags.ZebinIgnoreIcbeVersion.get()) {
compilerVersionCorrect = verifyIcbeVersion();
}