llvm-project/openmp/libomptarget/plugins/amdgpu/dynamic_hsa
Joseph Huber 540a13652f [Libomptarget] Replace use of `dlopen` with LLVM's dynamic library support
This patch replaces uses of `dlopen` and `dlsym` with LLVM's support
with `loadPermanentLibrary` and `getSymbolAddress`. This allows us to
remove the explicit dependency on the `dl` libraries in the CMake. This
removes another explicit dependency and solves an issue encountered
while building on Windows platforms. The one downside to this is that
the LLVM library does not currently support `dlclose` functionality, but
this could be added in the future.

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D131507
2022-08-24 10:46:21 -05:00
..
hsa.cpp [Libomptarget] Replace use of `dlopen` with LLVM's dynamic library support 2022-08-24 10:46:21 -05:00
hsa.h [Libomptarget] Add checks for AMDGPU TargetID using new image info 2022-07-26 02:44:31 -05:00
hsa_ext_amd.h [LIBOMPTARGET] Adding AMD to llvm-omp-device-info 2022-06-09 11:58:39 +00:00