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

Joseph Huber via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 29 20:54:27 PDT 2025


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

That's a much bigger patch and would need to refactor the other uses of this (assert and printf). I figured the one-liner was easier.

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


More information about the llvm-commits mailing list