[llvm] [OpenMP] Use the `libc` malloc for AMDGPU if available (PR #151241)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 29 19:36:50 PDT 2025


================
@@ -50,7 +50,7 @@ namespace {
 ///
 ///{
 extern "C" {
-#ifdef __AMDGPU__
+#if defined(__AMDGPU__) && !defined(OMPTARGET_HAS_LIBC)
----------------
arsenm wrote:

Can you keep this logic fully in cmake by splitting out the malloc / free to a separately linked object 

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


More information about the llvm-commits mailing list