WSL - fixing resource cleanup on process shutdown

Resolves issues with coexistance of NEO L0 and NEO OCL libraries
within a single process running in WSL and using WDDM GPU PV

Signed-off-by: Jaroslaw Chodor <jaroslaw.chodor@intel.com>
This commit is contained in:
Jaroslaw Chodor
2021-11-19 22:58:46 +01:00
committed by Compute-Runtime-Automation
parent c77fe0bffc
commit c4e802f01b
13 changed files with 120 additions and 26 deletions

View File

@@ -39,7 +39,7 @@ void OsContextWin::initializeContext() {
};
OsContextWin::~OsContextWin() {
if (contextInitialized) {
if (contextInitialized && (false == this->wddm.skipResourceCleanup())) {
wddm.getWddmInterface()->destroyHwQueue(hardwareQueue.handle);
wddm.getWddmInterface()->destroyMonitorFence(residencyController.getMonitoredFence());
wddm.destroyContext(wddmContextHandle);