mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
fix: include dynamic SLM in clGetKernelWorkGroupInfo and zeKernelGetProperties
Current implementation only takes static slmInlineSize into account. With this change we also include dynamic SLM passed as a kernel arguments. Related-To: NEO-5761 Signed-off-by: Fabian Zwoliński <fabian.zwolinski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
c09d5b383f
commit
b1a50104a8
@@ -897,7 +897,7 @@ ze_result_t KernelImp::getProperties(ze_kernel_properties_t *pKernelProperties)
|
||||
pKernelProperties->requiredNumSubGroups = kernelDescriptor.kernelMetadata.compiledSubGroupsNumber;
|
||||
pKernelProperties->requiredSubgroupSize = kernelDescriptor.kernelMetadata.requiredSubGroupSize;
|
||||
pKernelProperties->maxSubgroupSize = kernelDescriptor.kernelAttributes.simdSize;
|
||||
pKernelProperties->localMemSize = kernelDescriptor.kernelAttributes.slmInlineSize;
|
||||
pKernelProperties->localMemSize = this->getSlmTotalSize();
|
||||
pKernelProperties->privateMemSize = gfxCoreHelper.getKernelPrivateMemSize(kernelDescriptor);
|
||||
pKernelProperties->spillMemSize = kernelDescriptor.kernelAttributes.spillFillScratchMemorySize;
|
||||
memset(pKernelProperties->uuid.kid, 0, ZE_MAX_KERNEL_UUID_SIZE);
|
||||
|
||||
Reference in New Issue
Block a user