mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
SysMan: fix issues in execution environment restoration.
the scpoe of the restorer is till the LinuxSysmanImp is deleted. Ideally the scope of restorer needs to be function level. Signed-off-by: Vilvaraj, T J Vivek <t.j.vivek.vilvaraj@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
3dd6e3f125
commit
c0121eb824
@@ -105,6 +105,10 @@ ze_result_t LinuxDiagnosticsImp::waitForQuiescentCompletion() {
|
||||
|
||||
ze_result_t LinuxDiagnosticsImp::osRunDiagTestsinFW(zes_diag_result_t *pResult) {
|
||||
pLinuxSysmanImp->diagnosticsReset = true;
|
||||
auto pDevice = pLinuxSysmanImp->getDeviceHandle();
|
||||
auto devicePtr = static_cast<DeviceImp *>(pDevice);
|
||||
NEO::ExecutionEnvironment *executionEnvironment = devicePtr->getNEODevice()->getExecutionEnvironment();
|
||||
auto restorer = std::make_unique<L0::ExecutionEnvironmentRefCountRestore>(executionEnvironment);
|
||||
pLinuxSysmanImp->releaseDeviceResources();
|
||||
ze_result_t result = gpuProcessCleanup();
|
||||
if (ZE_RESULT_SUCCESS != result) {
|
||||
|
||||
Reference in New Issue
Block a user