feature: Use L0 Loader teardown callback

Related-To: LOCI-4174

- Call zelSetDriverTeardown during L0 Driver teardown to prevent users
from calling into destroyed functions and encountering crashes
during teardown.

Signed-off-by: Neil R Spruit <neil.r.spruit@intel.com>
This commit is contained in:
Neil R Spruit
2023-03-22 01:22:13 +00:00
committed by Compute-Runtime-Automation
parent 88c352c580
commit 102c38fc34
19 changed files with 246 additions and 27 deletions

View File

@@ -25,7 +25,8 @@ void *dlopen(const char *filename, int flags) {
dlopenError = -1;
if (filename == nullptr ||
strcmp(filename, "libtest_dynamic_lib.so") == 0) {
(strcmp(filename, "libtest_dynamic_lib.so") == 0) ||
(strcmp(filename, "libtest_l0_loader_lib.so") == 0)) {
return dlopenFunc(filename, flags);
}
if (filename[0] == '_') {