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 38
38
39
39
#endif // __linux__
40
40
41
+ #include " dpctl_error_handlers.h"
41
42
#include < cstdint>
42
43
43
44
namespace dpctl
@@ -76,12 +77,18 @@ class DynamicLibHelper final
76
77
char *error = dlerror ();
77
78
78
79
if (nullptr != error) {
80
+ error_handler (" Could not retrieve symbol " + std::string (symName) +
81
+ " . Error encountered: " + std::string (error),
82
+ __FILE__, __func__, __LINE__);
79
83
return nullptr ;
80
84
}
81
85
#elif defined(_WIN32) || defined(_WIN64)
82
86
void *sym = (void *)GetProcAddress ((HMODULE)_handle, symName);
83
87
84
88
if (nullptr == sym) {
89
+ error_handler (" Could not retrieve symbol " + std::string (symName) +
90
+ " ." ,
91
+ __FILE__, __func__, __LINE__);
85
92
return nullptr ;
86
93
}
87
94
#endif
You can’t perform that action at this time.
0 commit comments