mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-09 22:43:00 +08:00
Take maxKernelWorkGroupSize for totalWorkItems check
Change-Id: I30ebee26eddeb31890565b0edcbefc21392a91d1 Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
1d9b90d0a2
commit
438b27a73e
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user