[Openmp-commits] [openmp] [amdgpu] D2D memcpy via streams and HSA (PR #69977)

Jon Chesterfield via Openmp-commits openmp-commits at lists.llvm.org
Mon Oct 23 15:18:09 PDT 2023

JonChesterfield wrote:

> The AMDGPUDeviceTy should have an `Agent` inside of it. We can probably expose that via a getter to make the interface better.

It does, accessed via getAgent. In order to pass the DeviceTy I'd have to reorder a bunch of classes in the file or otherwise deal with the type being incomplete at the point it is used. Since this function is local to amdgpu (cuda doesn't have it), passing the agent seems better than the reordering mess plus immediately calling getAgent in the prologue.


More information about the Openmp-commits mailing list