[Openmp-commits] [openmp] [OpenMP] Basic BumpAllocator for (AMD)GPUs (PR #69806)
Johannes Doerfert via Openmp-commits
openmp-commits at lists.llvm.org
Fri Oct 20 20:09:03 PDT 2023
jdoerfert wrote:
> I figured we would just have an internal implementation of `malloc` provided by the OpenMP device runtime library. The variants make this more difficult, but we could just use `#ifdef __AMDGPU__` instead of an OpenMP variant so we can declare it as `extern "C"` inside the AMDGPU device RTL. Since we use a two-step compilation and always compile with clang it should be legal.
Done.
https://github.com/llvm/llvm-project/pull/69806
More information about the Openmp-commits
mailing list