mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-08 14:02:58 +08:00
Fix max root device index in Program's ctor
Related-To: NEO-5001 Change-Id: If3b86a51df478222f47a30c9254466dea0710ec4 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
52feced02b
commit
4122554b71
@@ -48,7 +48,13 @@ Program::Program(Context *context, bool isBuiltIn, const ClDeviceVector &clDevic
|
||||
numDevices = static_cast<uint32_t>(clDevicesIn.size());
|
||||
bool force32BitAddressess = false;
|
||||
|
||||
uint32_t maxRootDeviceIndex = pDevice->getRootDeviceIndex();
|
||||
uint32_t maxRootDeviceIndex = 0;
|
||||
|
||||
for (const auto &device : clDevicesIn) {
|
||||
if (device->getRootDeviceIndex() > maxRootDeviceIndex) {
|
||||
maxRootDeviceIndex = device->getRootDeviceIndex();
|
||||
}
|
||||
}
|
||||
|
||||
buildInfos.resize(maxRootDeviceIndex + 1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user