Take maxKernelWorkGroupSize for totalWorkItems check

Change-Id: I30ebee26eddeb31890565b0edcbefc21392a91d1
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
Dunajski, Bartosz
2019-09-18 14:00:34 +02:00
committed by sys_ocldev
parent 1d9b90d0a2
commit 438b27a73e
2 changed files with 6 additions and 4 deletions

View File

@@ -127,7 +127,7 @@ cl_int CommandQueueHw<GfxFamily>::enqueueKernel(
",", globalWorkSizeIn[2],
",SIMD:, ", kernel.getKernelInfo().getMaxSimdSize());
if (totalWorkItems > this->getDevice().getDeviceInfo().maxWorkGroupSize) {
if (totalWorkItems > kernel.maxKernelWorkGroupSize) {
return CL_INVALID_WORK_GROUP_SIZE;
}