mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
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:
committed by
Compute-Runtime-Automation
parent
88c352c580
commit
102c38fc34
@@ -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] == '_') {
|
||||
|
||||
Reference in New Issue
Block a user