[Openmp-commits] [openmp] [OpenMP] Basic BumpAllocator for	(AMD)GPUs (PR #69806)
    Joseph Huber via Openmp-commits 
    openmp-commits at lists.llvm.org
       
    Fri Oct 20 19:55:37 PDT 2023
    
    
  
https://github.com/jhuber6 commented:
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.
https://github.com/llvm/llvm-project/pull/69806
    
    
More information about the Openmp-commits
mailing list