[Openmp-commits] [PATCH] D102692: [AMDGPU][Libomptarget] Move Kernel/Symbol info tables to RTLDeviceInfoTy
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Tue May 18 07:59:04 PDT 2021
JonChesterfield added a comment.
The vector<> part is for N GPUs, and each function call is for a specific GPU. So we never need to pass the whole vector along, only theap corresponding to that GPU.
I'd prefer we populate a new map for each code object and then merge them, instead of mutating the existing map, but I guess that's not a significant difference.
PopulateInfoTablesContext looks like a hazard - it's a struct holding references, which is usually a bad sign for lifetimes. If that's only used to pass data across the void* boundary, let's use a lambda instance instead.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D102692/new/
https://reviews.llvm.org/D102692
More information about the Openmp-commits
mailing list