This is an archive of the discontinued LLVM Phabricator instance.

[Libmoptarget] Enable the shared allocator for AMDGPU
ClosedPublic

Authored by jhuber6 on Feb 10 2023, 11:17 AM.

Details

Summary

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.

Diff Detail

Event Timeline

jhuber6 created this revision.Feb 10 2023, 11:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 10 2023, 11:17 AM
jhuber6 requested review of this revision.Feb 10 2023, 11:17 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 10 2023, 11:17 AM
This revision is now accepted and ready to land.Feb 10 2023, 12:48 PM
This revision was landed with ongoing or failed builds.Feb 20 2023, 6:44 AM
This revision was automatically updated to reflect the committed changes.