Do not pass device ordinal in drm creation

Change-Id: I8376a8eace1109772c516d7a3daadfa709495171
Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
Jobczyk, Lukasz
2020-01-20 07:21:54 +01:00
committed by sys_ocldev
parent 48a87cb675
commit cccb95bc4e
2 changed files with 7 additions and 1 deletions

View File

@@ -31,7 +31,7 @@ bool DeviceFactory::getDevices(size_t &numDevices, ExecutionEnvironment &executi
executionEnvironment.prepareRootDeviceEnvironments(static_cast<uint32_t>(numRootDevices));
for (auto rootDeviceIndex = 0u; rootDeviceIndex < numRootDevices; rootDeviceIndex++) {
Drm *drm = Drm::create(rootDeviceIndex);
Drm *drm = Drm::create(devNum);
if (!drm) {
return false;
}