[Openmp-commits] [PATCH] D87413: [OpenMP] Load plugins from same directory as the libomptarget.so

Ravi Narayanaswamy via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Wed Sep 9 16:26:01 PDT 2020


RaviNarayanaswamy added inline comments.


================
Comment at: openmp/libomptarget/src/rtl.cpp:87-103
+      DP("Trying to load plugins from same directory as libomptarget.so: %s\n",
+         Name);
+      handle = dlopen("libomptarget.so", RTLD_NOW);
+      if (!handle) {
+        DP("Unable to load library '%s': %s!\n", Name, dlerror());
+        continue;
+      }
----------------
Do we need to repeat this everytime in the for loop


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D87413/new/

https://reviews.llvm.org/D87413



More information about the Openmp-commits mailing list