[OpenMP] [OMPT] [8/8] Added lit tests for OMPT target callbacks
authorDhruva Chakrabarti <Dhruva.Chakrabarti@amd.com>
Fri, 17 Mar 2023 08:55:27 +0000 (09:55 +0100)
committerMichael Halkenhaeuser <MichaelGerald.Halkenhauser@amd.com>
Fri, 17 Mar 2023 09:26:27 +0000 (10:26 +0100)
commitacdb199a2f501038e87a4df04ae2deed56bd3b8f
tree11a2c2553f4a0d579d004a9e9099b254e8b23513
parenta5242483e40cd30f59ad419154ca6ce9e0adadca
[OpenMP] [OMPT] [8/8] Added lit tests for OMPT target callbacks

Added a new target ompt mode that depends on libomptarget OMPT support.
Added tests that verify callbacks for target regions, kernel launch,
and data transfer operations. All of them should pass on amdgpu using
make check-libomptarget.

Reviewed By: jplehr

Differential Revision: https://reviews.llvm.org/D127372
17 files changed:
openmp/libomptarget/test/lit.cfg
openmp/libomptarget/test/lit.site.cfg.in
openmp/libomptarget/test/ompt/callbacks.h [new file with mode: 0644]
openmp/libomptarget/test/ompt/register_both.h [new file with mode: 0644]
openmp/libomptarget/test/ompt/register_emi.h [new file with mode: 0644]
openmp/libomptarget/test/ompt/register_emi_map.h [new file with mode: 0644]
openmp/libomptarget/test/ompt/register_no_device_init.h [new file with mode: 0644]
openmp/libomptarget/test/ompt/register_non_emi.h [new file with mode: 0644]
openmp/libomptarget/test/ompt/register_non_emi_map.h [new file with mode: 0644]
openmp/libomptarget/test/ompt/register_wrong_return.h [new file with mode: 0644]
openmp/libomptarget/test/ompt/veccopy.c [new file with mode: 0644]
openmp/libomptarget/test/ompt/veccopy_disallow_both.c [new file with mode: 0644]
openmp/libomptarget/test/ompt/veccopy_emi.c [new file with mode: 0644]
openmp/libomptarget/test/ompt/veccopy_emi_map.c [new file with mode: 0644]
openmp/libomptarget/test/ompt/veccopy_map.c [new file with mode: 0644]
openmp/libomptarget/test/ompt/veccopy_no_device_init.c [new file with mode: 0644]
openmp/libomptarget/test/ompt/veccopy_wrong_return.c [new file with mode: 0644]