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) {
2323 logger::error (
2424 " Failed to unload the library with the handle at address {}" ,
2525 handle);
26+ } else {
27+ logger::info (" unloaded adapter 0x{}" , handle);
2628 }
2729 }
2830}
@@ -42,8 +44,9 @@ LibLoader::loadAdapterLibrary(const char *name) {
4244 mode |= RTLD_DEEPBIND;
4345 }
4446#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);
4750}
4851
4952void *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() {
212212 delete context;
213213 });
214214
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;
216219}
217220
218221ur_result_t
You can’t perform that action at this time.
0 commit comments