mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 01:35:20 +08:00
feature: verify stateful information only when binary is generated by IGC
Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com> Related-To: NEO-6075 Ngen binaries contain stateful information, however they are not used in isa on Pvc. Therefore, we can just ignore them.
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
37f04dc670
commit
6a0f7afd64
@@ -168,9 +168,10 @@ cl_int Program::build(
|
||||
auto containsStatefulAccess = AddressingModeHelper::containsStatefulAccess(buildInfos[clDevices[0]->getRootDeviceIndex()].kernelInfoArray, skipLastExplicitArg);
|
||||
auto isUserKernel = !isBuiltIn;
|
||||
|
||||
auto failBuildProgram = (containsStatefulAccess &&
|
||||
isUserKernel &&
|
||||
AddressingModeHelper::failBuildProgramWithStatefulAccess(clDevices[0]->getRootDeviceEnvironment()));
|
||||
auto failBuildProgram = containsStatefulAccess &&
|
||||
isUserKernel &&
|
||||
AddressingModeHelper::failBuildProgramWithStatefulAccess(clDevices[0]->getRootDeviceEnvironment()) &&
|
||||
isGeneratedByIgc;
|
||||
|
||||
if (failBuildProgram) {
|
||||
retVal = CL_BUILD_PROGRAM_FAILURE;
|
||||
|
||||
Reference in New Issue
Block a user