mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
fix: handle not exisiting wsl compute helper library
https://github.com/intel/compute-runtime/issues/688 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9a8138725a
commit
c454e0d33e
@@ -282,10 +282,12 @@ std::unique_ptr<UmKmDataTranslator> createUmKmDataTranslator(const Gdi &gdi, D3D
|
||||
path.append(Os::fileSeparator);
|
||||
path.append(wslComputeHelperLibNameToLoad);
|
||||
}
|
||||
return std::make_unique<WslComputeHelperUmKmDataTranslator>(std::unique_ptr<OsLibrary>(OsLibrary::load(path)));
|
||||
} else {
|
||||
return std::make_unique<UmKmDataTranslator>();
|
||||
std::unique_ptr<OsLibrary> lib{OsLibrary::load(path)};
|
||||
if ((nullptr != lib) && (lib->isLoaded())) {
|
||||
return std::make_unique<WslComputeHelperUmKmDataTranslator>(std::move(lib));
|
||||
}
|
||||
}
|
||||
return std::make_unique<UmKmDataTranslator>();
|
||||
}
|
||||
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user