[llvm] [Offload][OMPT][NFC] Add test for `host_op_id` consistency (PR #201144)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 5 05:24:17 PDT 2026
Jan =?utf-8?q?André?= Reuter <j.reuter at fz-juelich.de>
Message-ID:
In-Reply-To: <llvm.org/llvm/llvm-project/pull/201144 at github.com>
================
@@ -162,6 +162,8 @@ static void on_ompt_callback_target_emi(ompt_target_t kind,
static void on_ompt_callback_target_submit_emi(
ompt_scope_endpoint_t endpoint, ompt_data_t *target_data,
ompt_id_t *host_op_id, unsigned int requested_num_teams) {
+ if (endpoint == ompt_scope_begin)
+ *host_op_id = next_op_id++;
----------------
jprotze wrote:
My reasoning was: While the tests code executes sequentially, `target nowait` is handled by the hidden helper threads, which might lead to concurrent execution when a test code contains multiple device regions.
https://github.com/llvm/llvm-project/pull/201144
More information about the llvm-commits
mailing list