diff options
author | Michael Halkenhäuser <MichaelGerald.Halkenhauser@amd.com> | 2023-09-11 12:11:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-11 12:11:44 +0200 |
commit | 53602e6193d98b1e814b76a27e99ef7e18c9769c (patch) | |
tree | cf4a29043775ff644ad87df1ea963b06b5eee27f /llvm/lib/IR/BasicBlock.cpp | |
parent | 87461d669684668f02362f77807f313187667329 (diff) | |
download | llvm-53602e6193d98b1e814b76a27e99ef7e18c9769c.zip llvm-53602e6193d98b1e814b76a27e99ef7e18c9769c.tar.gz llvm-53602e6193d98b1e814b76a27e99ef7e18c9769c.tar.bz2 |
[OpenMP][OMPT] Fix device identifier collision during callbacks (#65595)
Fixes: https://github.com/llvm/llvm-project/issues/65104
When a user assigns devices to target regions it may happen that
different identifiers will map onto the same id within different
plugins. This will lead to situations where callbacks will become much
harder to read, as ambiguous identifiers are reported.
We fix this by collecting the index-offset upon general RTL
initialization. Which in turn, allows to calculate the unique,
user-observable device id.
Diffstat (limited to 'llvm/lib/IR/BasicBlock.cpp')
0 files changed, 0 insertions, 0 deletions