Fail build program in shared system USM + stateful access case

Signed-off-by: Kamil Kopryk <kamil.kopryk@intel.com>
Related-To: NEO-6075

After this change driver will fail clBuildProgram/zeModuleCreate api calls
whenever stateful access is discovered and device has shared system usm caps
enabled.This is required since in this case allocation greater than 4GB
will not work.
If user still wants to use stateful addressing mode,
-cl-opt-smaller-than-4GB-buffers-only / -ze-opt-smaller-than-4GB-buffers-only
build option should be passed as build option, but then user can not use
buffers greater than 4GB.
This commit is contained in:
Kamil Kopryk
2021-11-09 14:12:08 +00:00
committed by Compute-Runtime-Automation
parent d497392b55
commit 0ad8afc0b3
13 changed files with 371 additions and 6 deletions

View File

@ -6,4 +6,5 @@
*/
__kernel void test(__global float *argGlobal, __read_only image3d_t argImg3D, __constant float *argConst) {
argGlobal[0] = argConst[0];
}