This is an archive of the discontinued LLVM Phabricator instance.

[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
Connect OMPT during plugin initialization and enable corresponding tests.
Avoid linking OMPT when corresponding support is disabled.

Depends on D158542

Diff Detail

Event Timeline

mhalk created this revision.Aug 22 2023, 1:08 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 22 2023, 1:08 PM
mhalk requested review of this revision.Aug 22 2023, 1:08 PM
Herald added a project: Restricted Project. · View Herald Transcript
mhalk updated this revision to Diff 552485.Aug 22 2023, 1:11 PM

Added dependency to commit message.

tianshilei1992 accepted this revision.Aug 22 2023, 1:31 PM
This revision is now accepted and ready to land.Aug 22 2023, 1:31 PM
mhalk updated this revision to Diff 553439.Aug 25 2023, 4:37 AM

Rebased + added condition for linking OMPT library

mhalk edited the summary of this revision. (Show Details)Aug 25 2023, 4:38 AM
mhalk added inline comments.Aug 25 2023, 4:44 AM
openmp/libomptarget/plugins-nextgen/CMakeLists.txt
59–61

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?

dhruvachak added inline comments.
openmp/libomptarget/plugins-nextgen/CMakeLists.txt
59–61

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?

Seems ok to me.

mhalk added inline comments.Aug 25 2023, 10:41 AM
openmp/libomptarget/plugins-nextgen/CMakeLists.txt
59–61

Thank you very much!