File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
libsyclinterface/helper/include Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 3838
3939#endif // __linux__
4040
41+ #include " dpctl_error_handlers.h"
4142#include < cstdint>
4243
4344namespace dpctl
@@ -76,12 +77,18 @@ class DynamicLibHelper final
7677 char *error = dlerror ();
7778
7879 if (nullptr != error) {
80+ error_handler (" Could not retrieve symbol " + std::string (symName) +
81+ " . Error encountered: " + std::string (error),
82+ __FILE__, __func__, __LINE__);
7983 return nullptr ;
8084 }
8185#elif defined(_WIN32) || defined(_WIN64)
8286 void *sym = (void *)GetProcAddress ((HMODULE)_handle, symName);
8387
8488 if (nullptr == sym) {
89+ error_handler (" Could not retrieve symbol " + std::string (symName) +
90+ " ." ,
91+ __FILE__, __func__, __LINE__);
8592 return nullptr ;
8693 }
8794#endif
You can’t perform that action at this time.
0 commit comments