File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ void LibLoader::freeAdapterLibrary(HMODULE handle) {
23
23
logger::error (
24
24
" Failed to unload the library with the handle at address {}" ,
25
25
handle);
26
+ } else {
27
+ logger::info (" unloaded adapter 0x{}" , handle);
26
28
}
27
29
}
28
30
}
@@ -42,8 +44,9 @@ LibLoader::loadAdapterLibrary(const char *name) {
42
44
mode |= RTLD_DEEPBIND;
43
45
}
44
46
#endif
45
-
46
- return std::unique_ptr<HMODULE, LibLoader::lib_dtor>(dlopen (name, mode));
47
+ HMODULE handle = dlopen (name, mode);
48
+ logger::info (" loaded adapter 0x{} ({})" , handle, name);
49
+ return std::unique_ptr<HMODULE, LibLoader::lib_dtor>(handle);
47
50
}
48
51
49
52
void *LibLoader::getFunctionPtr (HMODULE handle, const char *func_name) {
Original file line number Diff line number Diff line change @@ -212,7 +212,10 @@ ur_result_t urLoaderTearDown() {
212
212
delete context;
213
213
});
214
214
215
- return ret == 0 ? UR_RESULT_SUCCESS : UR_RESULT_ERROR_UNINITIALIZED;
215
+ ur_result_t result =
216
+ ret == 0 ? UR_RESULT_SUCCESS : UR_RESULT_ERROR_UNINITIALIZED;
217
+ logger::info (" ---> urLoaderTearDown() -> {}" , result);
218
+ return result;
216
219
}
217
220
218
221
ur_result_t
You can’t perform that action at this time.
0 commit comments