More cleanup of Level Zero core API

Change-Id: Iad2118683efb4f5029503a8fec20d88b37d22e07
Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
Jaime Arteaga
2020-03-05 00:25:57 -08:00
parent 65b9ba082b
commit fdcc07a121
20 changed files with 551 additions and 267 deletions

View File

@@ -235,6 +235,7 @@ ze_result_t KernelImp::setGroupSize(uint32_t groupSizeX, uint32_t groupSizeY,
auto itemsInGroup = Math::computeTotalElementsCount(groupSize);
if (itemsInGroup > module->getMaxGroupSize()) {
DEBUG_BREAK_IF(true);
return ZE_RESULT_ERROR_UNKNOWN;
}
auto grfSize = kernelImmData->getDescriptor().kernelAttributes.grfSize;