[Openmp-commits] [PATCH] D110706: Protect calls to KMP_DLSYM in kmp_alloc.cpp
Joachim Protze via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Sep 29 06:40:26 PDT 2021
protze.joachim added a comment.
Which platform has the problem? Static build does not preclude linking libdl, which will provide dlsym. So, an alternative solution might be to link libdl for the static library?
kmp_ftn_entry.h uses the same function in several places. No issues there?
================
Comment at: openmp/runtime/src/kmp_alloc.cpp:1364
*(void **)(&kmp_target_free) = KMP_DLSYM("omp_target_free");
__kmp_target_mem_available = kmp_target_alloc_host &&
kmp_target_alloc_shared &&
----------------
This variable should at least be set to `0`/false
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D110706/new/
https://reviews.llvm.org/D110706
More information about the Openmp-commits
mailing list