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]
Cette révision appartient à :
foreman a révisé 2018-08-07 17:56:54 -04:00
1 Parent 20e1c977c9
révision eb836ba642
1 fichier modifié
+6 -2
+6 -2
Voir le fichier
@@ -1218,12 +1218,16 @@ bool Device::init() {
}
void Device::tearDown() {
platform_->Destroy();
delete platformObj_;
if (platform_ != nullptr) {
platform_->Destroy();
delete platformObj_;
platform_ = nullptr;
}
#if !defined(WITH_LIGHTNING_COMPILER)
if (compiler_ != nullptr) {
aclCompilerFini(compiler_);
compiler_ = nullptr;
}
#endif // !defined(WITH_LIGHTNING_COMPILER)
}