mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-25 05:24:02 +08:00
Fix ocl program creation on multi device contexts
Signed-off-by: Sebastian Luzynski <sebastian.jozef.luzynski@intel.com> Related-To: NEO-5734
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
75e8dc499e
commit
95ba83c7e1
@@ -32,7 +32,7 @@ class MultiDeviceKernel : public BaseObject<_cl_kernel> {
|
||||
KernelVectorType kernels{};
|
||||
kernels.resize(program->getMaxRootDeviceIndex() + 1);
|
||||
|
||||
for (auto &pDevice : program->getDevices()) {
|
||||
for (auto &pDevice : program->getDevicesInProgram()) {
|
||||
auto rootDeviceIndex = pDevice->getRootDeviceIndex();
|
||||
if (kernels[rootDeviceIndex]) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user