This is an archive of the discontinued LLVM Phabricator instance.

[AMDGPU][Libomptarget][NFC] Remove atmi_mem_place_t
ClosedPublic

Authored by pdhaliwal on May 27 2021, 4:00 AM.

Details

Summary

This struct was used to specify the device on which memory was
being allocated/free in atmi_malloc/free. It has now been replaced
with int DeviceId.

Diff Detail

Event Timeline

pdhaliwal created this revision.May 27 2021, 4:00 AM
pdhaliwal requested review of this revision.May 27 2021, 4:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 27 2021, 4:00 AM
pdhaliwal updated this revision to Diff 348218.May 27 2021, 4:06 AM

Remove whitespace changes.

pdhaliwal retitled this revision from [AMDGPU][Libomptarget] Remove atmi_mem_place_t to [AMDGPU][Libomptarget][NFC] Remove atmi_mem_place_t.May 27 2021, 4:06 AM
JonChesterfield accepted this revision.May 27 2021, 4:40 AM

Nice, like that a lot. I hadn't noticed that we are passing device id == 0 around to mean a CPU device, that seems a path to considerable confusion. Probably better to split the allocators into gpu (which takes a device id) and cpu (which doesn't) in some later patch.

This revision is now accepted and ready to land.May 27 2021, 4:40 AM
This revision was landed with ongoing or failed builds.May 27 2021, 4:53 AM
This revision was automatically updated to reflect the committed changes.