Return appropriate error code on invalid group size dimension

Change-Id: I3a068286cbc28b224c4c67cee2e81e65e253c924
Signed-off-by: Raiyan Latif <raiyan.latif@intel.com>
This commit is contained in:
Raiyan Latif
2020-03-22 16:45:53 -07:00
committed by sys_ocldev
parent 43016c6559
commit dd53734c0d

View File

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