[Openmp-commits] [llvm] [openmp] [offload] Pool host and shared allocations (PR #214754)
Johannes Doerfert via Openmp-commits
openmp-commits at lists.llvm.org
Mon Aug 10 18:06:52 PDT 2026
jdoerfert wrote:
> IIRC host allocations are a little strange so I'll need to double check. HSA does its own pooling, but allocations that pin memory use full page granularity so they're not as easily split. E.g. if you want to pin 4 bytes you round down to the page size and pin the whole page. If you then unpin that and free it you could unpin in-flight memory that shares the page, so I think HSA just gives you an entire page.
We could keep track of users of an unpinned side and co-locate ourselves anyway. Just a thought.
https://github.com/llvm/llvm-project/pull/214754
More information about the Openmp-commits
mailing list