We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36c8f71 commit f24aa12Copy full SHA for f24aa12
1 file changed
libsyclinterface/helper/include/dpctl_dynamic_lib_helper.h
@@ -38,6 +38,7 @@
38
39
#endif // __linux__
40
41
+#include "dpctl_error_handlers.h"
42
#include <cstdint>
43
44
namespace dpctl
@@ -76,12 +77,18 @@ class DynamicLibHelper final
76
77
char *error = dlerror();
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__);
83
return nullptr;
84
}
85
#elif defined(_WIN32) || defined(_WIN64)
86
void *sym = (void *)GetProcAddress((HMODULE)_handle, symName);
87
88
if (nullptr == sym) {
89
90
+ ".",
91
92
93
94
#endif
0 commit comments