[Openmp-commits] [openmp] 1588f08 - [OpenMP][OMPT] Add missing `error` entry to device tracing record union (#185683)
via Openmp-commits
openmp-commits at lists.llvm.org
Tue Mar 17 02:00:27 PDT 2026
Author: Jan André Reuter
Date: 2026-03-17T10:00:21+01:00
New Revision: 1588f083694b9547e974f551b4e3110c35b1dc4d
URL: https://github.com/llvm/llvm-project/commit/1588f083694b9547e974f551b4e3110c35b1dc4d
DIFF: https://github.com/llvm/llvm-project/commit/1588f083694b9547e974f551b4e3110c35b1dc4d.diff
LOG: [OpenMP][OMPT] Add missing `error` entry to device tracing record union (#185683)
While `omp-tools.h` already includes the `ompt_record_error_t` struct,
the corresponding union entry was missing from `ompt_record_ompt_t`.
This commit adds the missing entry.
Note that this does not enable any functionality for device tracing
records.
This only aligns the struct with OpenMP v5.1 and newer. OpenMP v5.0 did
not contain the `error` directive.
CC: @jprotze
Signed-off-by: Jan André Reuter <j.reuter at fz-juelich.de>
Added:
Modified:
openmp/runtime/src/include/omp-tools.h.var
Removed:
################################################################################
diff --git a/openmp/runtime/src/include/omp-tools.h.var b/openmp/runtime/src/include/omp-tools.h.var
index 471f46a9073ee..e727fa3ebad28 100644
--- a/openmp/runtime/src/include/omp-tools.h.var
+++ b/openmp/runtime/src/include/omp-tools.h.var
@@ -1402,6 +1402,7 @@ typedef struct ompt_record_ompt_t {
ompt_record_target_map_t target_map;
ompt_record_target_kernel_t target_kernel;
ompt_record_control_tool_t control_tool;
+ ompt_record_error_t error;
} record;
} ompt_record_ompt_t;
More information about the Openmp-commits
mailing list