[all-commits] [llvm/llvm-project] 70447b: [NFC][OMPT] Use `unique_id` entry point for tests ...
Jan André Reuter via All-commits
all-commits at lists.llvm.org
Mon Jun 8 02:27:03 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 70447b4b7e6e4e141b8936287ba159d6ce75a2b2
https://github.com/llvm/llvm-project/commit/70447b4b7e6e4e141b8936287ba159d6ce75a2b2
Author: Jan André Reuter <j.reuter at fz-juelich.de>
Date: 2026-06-08 (Mon, 08 Jun 2026)
Changed paths:
M offload/test/ompt/callbacks.h
M offload/test/ompt/register_both.h
M offload/test/ompt/register_emi.h
M offload/test/ompt/register_emi_map.h
M offload/test/ompt/register_no_device_init.h
M offload/test/ompt/register_non_emi.h
M offload/test/ompt/register_non_emi_map.h
M offload/test/ompt/register_wrong_return.h
Log Message:
-----------
[NFC][OMPT] Use `unique_id` entry point for tests (#202228)
The OMPT tests currently use an incrementing ID for the host_op_id.
However, this value is not incremented for `submit_emi` callbacks, and
uses a global integer that is incremented on callback invocation. This
can lead to race conditions when e.g., `target nowait` is used.
Hence, replace the global integer by the `unique_id` entry point,
properly yielding unique and thread-safe IDs.
Signed-off-by: Jan André Reuter <j.reuter at fz-juelich.de>
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list