llvm-project/openmp/libomptarget/test
Joel E. Denny 51168ce8d5 [OpenMP] Add test for custom state machine if have reduction
D113602 broke the custom state machine when a reduction is present, as
revealed by the reproducer this patch adds to the test suite.  In that
case, openmp-opts changes the return value to undef in
`__kmpc_get_warp_size` (which the custom state machine calls as of
D113602).  Later optimizations then optimize away the custom state
machine code as if all threads are outside the thread block, so the
target region does not execute.  D114802 fixed that but didn't add a
reproducer.

This patch also adds a `__OMP_RTL_ATTRS` entry for
`__kmpc_get_warp_size` to OMPKinds.def, which D113602 missed.  This
change does not seem to have any impact on the reduction problem.

Reviewed By: JonChesterfield, jdoerfert

Differential Revision: https://reviews.llvm.org/D113824
2021-12-10 12:53:54 -05:00
..
api [Libomptarget] Add an external interface to dynamic shared memory 2021-10-08 15:36:57 -04:00
env [OpenMP][libomptarget] Separate lit tests for different offloading targets (2/2) 2021-04-27 15:54:32 +02:00
mapping OpenMP: Un-xfail tests that pass now 2021-12-04 11:25:22 -05:00
offloading [OpenMP] Add test for custom state machine if have reduction 2021-12-10 12:53:54 -05:00
unified_shared_memory [openmp][amdgpu] Disable three tests in preparation for new runtime 2021-12-02 07:57:14 +00:00
CMakeLists.txt [OpenMP][CMake] Fix an issue when there is space in the argument LIBOMPTARGET_LIT_ARGS 2021-07-18 21:54:14 -04:00
lit.cfg [openmp] Run tests on both runtimes, independent of the default 2021-12-06 16:41:23 +00:00
lit.site.cfg.in [OpenMP] Test unified shared memory tests only on systems that support it. 2021-05-13 11:08:04 -05:00