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:
Sebastian Luzynski
2021-04-28 10:23:16 +00:00
committed by Compute-Runtime-Automation
parent 75e8dc499e
commit 95ba83c7e1
6 changed files with 261 additions and 4 deletions

View File

@@ -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;