Force stateless compilation when device supports shared system memory

Change-Id: I8e11ef82baf010a9a400bc9d733b8ec37a9fbb21
Signed-off-by: Mrozek, Michal <michal.mrozek@intel.com>
This commit is contained in:
Mrozek, Michal
2019-09-05 08:59:33 +02:00
committed by sys_ocldev
parent 849ff8c6d1
commit 46b3012eb5
2 changed files with 9 additions and 3 deletions

View File

@ -74,7 +74,8 @@ Program::Program(ExecutionEnvironment &executionEnvironment, Context *context, b
internalOptions += "-m32 ";
}
if (DebugManager.flags.DisableStatelessToStatefulOptimization.get()) {
if (pDevice->areSharedSystemAllocationsAllowed() ||
DebugManager.flags.DisableStatelessToStatefulOptimization.get()) {
internalOptions += "-cl-intel-greater-than-4GB-buffer-required ";
}
kernelDebugEnabled = pDevice->isSourceLevelDebuggerActive();