P4 to Git Change 1590512 by gandryey@gera-lnx-rcf on 2018/08/07 17:06:25
SWDEV-160552 - [CQE OCL][DTB][BD][Perf][QR][G] Soft hang is observed with ProRender after few subtests due to base driver.
- Delete PAL platform object if runtime didn't find any supported device.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#101 edit
[ROCm/clr commit: 769cc7cddb]
This commit is contained in:
@@ -1194,6 +1194,7 @@ bool Device::init() {
|
||||
selectDeviceByName = GPU_DEVICE_NAME;
|
||||
}
|
||||
|
||||
bool foundDevice = false;
|
||||
// Loop through all active devices and initialize the device info structure
|
||||
for (; ordinal < numDevices; ++ordinal) {
|
||||
// Create the GPU device object
|
||||
@@ -1204,11 +1205,15 @@ bool Device::init() {
|
||||
}
|
||||
if (result && ((nullptr == selectDeviceByName) || ('\0' == selectDeviceByName[0]) ||
|
||||
(strstr(selectDeviceByName, d->info().name_) != nullptr))) {
|
||||
foundDevice = true;
|
||||
d->registerDevice();
|
||||
} else {
|
||||
delete d;
|
||||
}
|
||||
}
|
||||
if (!foundDevice) {
|
||||
Device::tearDown();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Viittaa uudesa ongelmassa
Block a user