We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dabdbd4 commit df0af38Copy full SHA for df0af38
sycl/source/detail/posix_pi.cpp
@@ -22,8 +22,9 @@ void *loadOsLibrary(const std::string &PluginPath) {
22
// RTLD_DEEPBIND option when there are multiple plugins.
23
void *so = dlopen(PluginPath.c_str(), RTLD_NOW);
24
if (!so && trace(TraceLevel::PI_TRACE_ALL)) {
25
+ char *Error = dlerror();
26
std::cerr << "SYCL_PI_TRACE[-1]: dlopen(" << PluginPath << ") failed with <"
- << dlerror() << ">" << std::endl;
27
+ << (Error ? Error : "unknown error") << ">" << std::endl;
28
}
29
return so;
30
0 commit comments