P4 to Git Change 1590524 by gandryey@gera-lnx-rcf on 2018/08/07 17:38:31
SWDEV-160552 - [CQE OCL][DTB][BD][Perf][QR][G] Soft hang is observed with ProRender after few subtests due to base driver.
- Reset the pointer to nullptr if PAL platform was destroyed
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/pal/paldevice.cpp#102 edit
[ROCm/clr commit: 1a61f6b9e5]
This commit is contained in:
@@ -1218,12 +1218,16 @@ bool Device::init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Device::tearDown() {
|
void Device::tearDown() {
|
||||||
platform_->Destroy();
|
if (platform_ != nullptr) {
|
||||||
delete platformObj_;
|
platform_->Destroy();
|
||||||
|
delete platformObj_;
|
||||||
|
platform_ = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
#if !defined(WITH_LIGHTNING_COMPILER)
|
#if !defined(WITH_LIGHTNING_COMPILER)
|
||||||
if (compiler_ != nullptr) {
|
if (compiler_ != nullptr) {
|
||||||
aclCompilerFini(compiler_);
|
aclCompilerFini(compiler_);
|
||||||
|
compiler_ = nullptr;
|
||||||
}
|
}
|
||||||
#endif // !defined(WITH_LIGHTNING_COMPILER)
|
#endif // !defined(WITH_LIGHTNING_COMPILER)
|
||||||
}
|
}
|
||||||
|
|||||||
مرجع در شماره جدید
Block a user