mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 17:13:29 +08:00
Add missing allocation of kernel private memory for the scenario when the private memory is not allocated within `KernelImp::initialize()` but deferred until `appendLaunchKernelWithParams()` instead. One kernel can never allocate more private/scratch memory than `globalMemorySize`, that ends up in `ZE_RESULT_ERROR_OUT_OF_DEVICE_MEMORY` being returned. However, several separate kernels can exceed the `globalMemorySize` and then, the private region of each such kernel is allocated at later stage, in `appendLaunchKernelWithParams()`. Such mechanism was present on pre-xehp platforms and it is now added to xehp-and-later. See: * ModuleImp::checkIfPrivateMemoryPerDispatchIsNeeded() * Module::shouldAllocatePrivateMemoryPerDispatch() Related-To: NEO-7398 Signed-off-by: Maciej Bielski <maciej.bielski@intel.com>