[Openmp-commits] [PATCH] D143771: [Libmoptarget] Enable the shared allocator for AMDGPU

Joseph Huber via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Fri Feb 10 11:17:46 PST 2023


jhuber6 created this revision.
jhuber6 added reviewers: kevinsala, JonChesterfield, tianshilei1992, ye-luo, jdoerfert.
Herald added subscribers: kosarev, kerbowa, tpr, dstuttard, yaxunl, jvesely, kzhuravl.
Herald added a project: All.
jhuber6 requested review of this revision.
Herald added subscribers: openmp-commits, wdng.
Herald added a project: OpenMP.

Currently, the AMDGPU plugin did not support the `TARGET_ALLOC_SHARED`
allocation kind. We used the fine-grained memory allocator for the
"host" alloc when this is most likely not what is intended. Fine-grained
memory can be accessed by all agents, so it should be considered shared.
This patch removes the use of fine-grained memory for the host
allocator. A later patch will add support for this via the
`hsa_amd_memory_lock` method.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D143771

Files:
  openmp/libomptarget/plugins-nextgen/amdgpu/src/rtl.cpp
  openmp/libomptarget/test/api/omp_device_managed_memory.c
  openmp/libomptarget/test/api/omp_host_pinned_memory.c
  openmp/libomptarget/test/api/omp_host_pinned_memory_alloc.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143771.496563.patch
Type: text/x-patch
Size: 3967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20230210/3532a375/attachment-0001.bin>


More information about the Openmp-commits mailing list