Skip to content

Commit 8be29ed

Browse files
authored
[OpenMP][OMPT] Update tools header for OpenMP v6.0 (#195829)
Add new enum values, structs and variables to `omp-tools.h` header, according to the OpenMP v6.0 specification. Update `openmp` and `offload` tools headers to recognize the new values to ease testing once those features are implemented. Since no feature is implemented here, update the docs to mention `partial` support, pointing to this PR for the enums. --------- Signed-off-by: Jan André Reuter <j.reuter@fz-juelich.de>
1 parent f3294c2 commit 8be29ed

4 files changed

Lines changed: 172 additions & 96 deletions

File tree

clang/docs/OpenMPSupport.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -611,21 +611,21 @@ implementation.
611611
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+
612612
| defaultmap implicit-behavior 'private' | :good:`done` | :none:`unclaimed` | https://github.com/llvm/llvm-project/pull/158712 |
613613
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+
614-
| OMPT: ompt_get_buffer_limits entry point | :none:`unclaimed` | :good:`N/A` | |
614+
| OMPT: ompt_get_buffer_limits entry point | :part:`partial` | :good:`N/A` | Definition: https://github.com/llvm/llvm-project/pull/195829 |
615615
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+
616-
| OMPT: ompt_any_record_ompt_t for device tracing | :none:`unclaimed` | :good:`N/A` | |
616+
| OMPT: ompt_any_record_ompt_t for device tracing | :good:`done` | :good:`N/A` | https://github.com/llvm/llvm-project/pull/195829 |
617617
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+
618-
| OMPT: ompt_target_data_transfer_rect(_async) & subvolume | :none:`unclaimed` | :good:`N/A` | |
618+
| OMPT: ompt_target_data_transfer_rect(_async) & subvolume | :part:`partial` | :good:`N/A` | Enum: https://github.com/llvm/llvm-project/pull/195829 |
619619
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+
620-
| OMPT: ompt_target_data_transfer(_async) | :none:`unclaimed` | :good:`N/A` | |
620+
| OMPT: ompt_target_data_transfer(_async) | :part:`partial` | :good:`N/A` | Enum: https://github.com/llvm/llvm-project/pull/195829 |
621621
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+
622-
| OMPT: ompt_target_data_memset(_async) | :none:`unclaimed` | :good:`N/A` | |
622+
| OMPT: ompt_target_data_memset(_async) | :part:`partial` | :good:`N/A` | Enum: https://github.com/llvm/llvm-project/pull/195829 |
623623
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+
624-
| OMPT: workdistribute work callback enum | :none:`unclaimed` | :good:`N/A` | |
624+
| OMPT: workdistribute work callback enum | :part:`partial` | :good:`N/A` | Enum: https://github.com/llvm/llvm-project/pull/195829 |
625625
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+
626-
| OMPT: transparent task flag enum (importing/exporting) | :none:`unclaimed` | :good:`N/A` | |
626+
| OMPT: transparent task flag enum (importing/exporting) | :part:`partial` | :good:`N/A` | Enum: https://github.com/llvm/llvm-project/pull/195829 |
627627
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+
628-
| OMPT: dependence type {out, inout}_all_memory | :none:`unclaimed` | :good:`N/A` | |
628+
| OMPT: dependence type {out, inout}_all_memory | :part:`partial` | :good:`N/A` | Enum: https://github.com/llvm/llvm-project/pull/195829 |
629629
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+
630630
| OMPT: removed master callback | :none:`unclaimed` | :good:`N/A` | |
631631
+-------------------------------------------------------------+---------------------------+---------------------------+--------------------------------------------------------------------------+

offload/test/ompt/callbacks.h

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,25 @@ static const char *ompt_target_data_op_t_values[] = {
1313
"ompt_target_data_delete",
1414
"ompt_target_data_associate",
1515
"ompt_target_data_disassociate",
16+
"ompt_target_data_transfer",
17+
"ompt_target_data_memset",
18+
"ompt_target_data_transfer_rect",
19+
"",
20+
"",
21+
"",
22+
"",
23+
"",
24+
"",
25+
"",
1626
"ompt_target_data_alloc_async",
1727
"ompt_target_data_transfer_to_device_async",
1828
"ompt_target_data_transfer_from_device_async",
19-
"ompt_target_data_delete_async"};
29+
"ompt_target_data_delete_async",
30+
"",
31+
"",
32+
"ompt_target_data_transfer_async",
33+
"ompt_target_data_memset_async",
34+
"ompt_target_data_transfer_rect_async"};
2035

2136
static const char *ompt_scope_endpoint_t_values[] = {
2237
"", "ompt_scope_begin", "ompt_scope_end", "ompt_scope_beginend"};

0 commit comments

Comments
 (0)