[Openmp-commits] [PATCH] D73657: [OPENMP] Load plugins from same directory as the libomptarget.so and quick fail mechanism for offloading plugins
Alexey Bataev via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Jan 29 11:58:43 PST 2020
ABataev added inline comments.
================
Comment at: openmp/libomptarget/src/rtl.cpp:67
+ // Load plugins from same directory as libomptarget.so
+ std::string full_plugin_name;
----------------
Why do we want to do this? Also, does it mean that cmake configuration must be changed to put plugins in the same directory as libomptarget.so?
================
Comment at: openmp/libomptarget/src/rtl.cpp:72
+ DP("dlopen() failed: %s\n", dlerror());
+ char *libomptarget_dir_name = new char[256];
+ if (dlinfo(handle, RTLD_DI_ORIGIN, libomptarget_dir_name) == -1)
----------------
Why need to use dynamic allocation here?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D73657/new/
https://reviews.llvm.org/D73657
More information about the Openmp-commits
mailing list