Fixes: https://github.com/llvm/llvm-project/issues/64487
Connect OMPT during plugin initialization and enable corresponding tests.
Avoid linking OMPT when corresponding support is disabled.
Depends on D158542
Paths
| Differential D158543
[OpenMP][OMPT] Add OMPT support for `generic-elf-64bit` plugin ClosedPublic Authored by mhalk on Aug 22 2023, 1:08 PM.
Details Summary Fixes: https://github.com/llvm/llvm-project/issues/64487 Depends on D158542
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 22 2023, 1:31 PM
dhruvachak added inline comments.
Closed by commit rG9300b6de3c1d: [OpenMP][OMPT] Add OMPT support for `generic-elf-64bit` plugin (authored by mhalk). · Explain WhyAug 25 2023, 10:53 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 553543 openmp/libomptarget/plugins-nextgen/CMakeLists.txt
openmp/libomptarget/plugins-nextgen/generic-elf-64bit/src/rtl.cpp
openmp/libomptarget/test/ompt/veccopy.c
openmp/libomptarget/test/ompt/veccopy_data.c
openmp/libomptarget/test/ompt/veccopy_disallow_both.c
openmp/libomptarget/test/ompt/veccopy_emi.c
openmp/libomptarget/test/ompt/veccopy_emi_map.c
openmp/libomptarget/test/ompt/veccopy_map.c
openmp/libomptarget/test/ompt/veccopy_no_device_init.c
openmp/libomptarget/test/ompt/veccopy_wrong_return.c
|
Mimicked the behavior we already use for other plugins.
Now we do not link OMPT anymore, when its support was actually disabled.
(using -DLIBOMP_OMPT_SUPPORT -OR- -DLIBOMPTARGET_OMPT_SUPPORT set to OFF)
Could someone confirm please, that this is sane?