[Openmp-commits] [openmp] [OpenMP][OMPD] Load `libompd` with LLVM dynamic lib (PR #222455)

Jan Patrick Lehr via Openmp-commits openmp-commits at lists.llvm.org
Mon Sep 14 04:58:21 PDT 2026


================
@@ -28,41 +32,35 @@ static void set_error(const char *msg) {
   last_error[sizeof(last_error) - 1] = '\0';
 }
 
-static void clear_error(void) {
-  last_error[0] = '\0';
-  (void)dlerror();
-}
+static void clear_error(void) { last_error[0] = '\0'; }
 
 int ompd_load_library(const char *name) {
-  const char *dlerr;
-
   clear_error();
   if (!name || !name[0]) {
     set_error("OMPD library path is empty");
-    ompd_library = NULL;
----------------
jplehr wrote:

So, would we be stuck then with an OMPD library that does not match the loaded program? I don't know how OMPD works, but that sounds like something undesirable?

https://github.com/llvm/llvm-project/pull/222455


More information about the Openmp-commits mailing list