performance: detect indirect access in kernel, PVC

Enabling on pvc after patch in igc.

Enabling only for JIT kernels because AOT could have been compiled with
IGC older than required.

Related-To: NEO-7712

Signed-off-by: Dominik Dabek <dominik.dabek@intel.com>
This commit is contained in:
Dominik Dabek
2023-07-21 14:01:51 +00:00
committed by Compute-Runtime-Automation
parent 985228ec57
commit 5c5c718af3
11 changed files with 37 additions and 17 deletions

View File

@@ -286,7 +286,7 @@ cl_int Kernel::initialize() {
slmSizes.resize(numArgs);
this->setInlineSamplers();
bool detectIndirectAccessInKernel = productHelper.isDetectIndirectAccessInKernelSupported(kernelDescriptor);
bool detectIndirectAccessInKernel = productHelper.isDetectIndirectAccessInKernelSupported(kernelDescriptor, program->getCreatedFromBinary());
if (DebugManager.flags.DetectIndirectAccessInKernel.get() != -1) {
detectIndirectAccessInKernel = DebugManager.flags.DetectIndirectAccessInKernel.get() == 1;
}