[llvm] [Offload][OMPT][NFC] Add test for `host_op_id` consistency (PR #201144)

Jan André Reuter via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 7 12:16:15 PDT 2026


================
@@ -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++;
----------------
Thyre wrote:

I separated the commit into its own PR: https://github.com/llvm/llvm-project/pull/202228

https://github.com/llvm/llvm-project/pull/201144


More information about the llvm-commits mailing list