[Openmp-commits] [clang] [openmp] [OFFLOAD] Build DeviceRTL with spirv backend (PR #171011)
Alex Duran via Openmp-commits
openmp-commits at lists.llvm.org
Tue Dec 9 08:41:41 PST 2025
================
@@ -23,7 +23,7 @@ using namespace allocator;
// Provide a default implementation of malloc / free for AMDGPU platforms built
// without 'libc' support.
extern "C" {
-#if defined(__AMDGPU__) && !defined(OMPTARGET_HAS_LIBC)
+#if (defined(__AMDGPU__) || defined(__SPIRV__)) && !defined(OMPTARGET_HAS_LIBC)
----------------
adurang wrote:
i think it's better to have a define in the dependent hedears that like NEEDS_ALLOC than have a list of architectures in independent files. Also, update the above comment.
https://github.com/llvm/llvm-project/pull/171011
More information about the Openmp-commits
mailing list