[Openmp-commits] [openmp] [OpenMP] Add Fortran support for omp_* functions needing adapters (PR #170374)
Michael Klemm via Openmp-commits
openmp-commits at lists.llvm.org
Wed Dec 10 02:58:05 PST 2025
mjklemm wrote:
> AFAIK, `RTLD_NEXT` depend on link order, making this a very fragile solution. Why is it needed anyway, given that the Fortran code already has a wrapper to `__kmp_get_uid_from_device_`?
Preaching to the choir here. :-) The problem is that we cannot rely on `libomptarget` to present for all possible configurations for the OpenMP runtime. That's what this fragile thing has been invented for (not only for this functionality) but for all entry points into `libomptarget` that need to be present as a stub if the OpenMP runtime does not have offload support enabled. To get rid of this, we would have to move the offload code even closer to the host OpenMP runtime, or split things up differently and enable the stubs only if the offload part is not present. Something to discuss for 2026 in the LLVM OpenMP telcos.
https://github.com/llvm/llvm-project/pull/170374
More information about the Openmp-commits
mailing list