17 inline namespace _V1 {
18 namespace detail::ur {
23 void *so = dlopen(LibraryPath.c_str(), RTLD_NOW);
25 char *Error = dlerror();
26 std::cerr <<
"SYCL_UR_TRACE: dlopen(" << LibraryPath <<
") failed with <"
27 << (Error ? Error :
"unknown error") <<
">" << std::endl;
35 return dlsym(Library, FunctionName.c_str());
__SYCL_EXTERN_STREAM_ATTRS ostream cerr
Linked to standard error (unbuffered)
void * getOsLibraryFuncAddress(void *Library, const std::string &FunctionName)
void * loadOsLibrary(const std::string &Library)
int unloadOsLibrary(void *Library)
C++ utilities for Unified Runtime integration.