mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
Don't use device from kernel if possible [1/n]
Related-To: NEO-5001 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
a2d2bd629a
commit
bd432fa94c
@@ -68,7 +68,7 @@ cl_int CommandQueueHw<GfxFamily>::enqueueKernel(
|
||||
|
||||
for (auto i = 0u; i < workDim; i++) {
|
||||
region[i] = globalWorkSizeIn ? globalWorkSizeIn[i] : 0;
|
||||
if (region[i] == 0 && (kernel.getDevice().areOcl21FeaturesEnabled() == false)) {
|
||||
if (region[i] == 0 && (kernel.getDevices()[0]->areOcl21FeaturesEnabled() == false)) {
|
||||
return CL_INVALID_GLOBAL_WORK_SIZE;
|
||||
}
|
||||
globalWorkOffset[i] = globalWorkOffsetIn
|
||||
|
||||
Reference in New Issue
Block a user