This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][NFC] lit: Run barrier/reduction tests for each barrier implementation
Needs ReviewPublic

Authored by t-msn on Apr 7 2022, 9:03 PM.

Details

Summary

There are several barrier algorithms in libomp and each barrier also impliments
its reduction scheme. Therefore basic barrier/reduction tests should be run
for each barrier.

Update following tests' lit to run the tests for each barrier currently supported
in libomp (linear, tree, hyper, hierachical and distribution):

barrier/omp_barrier.c
ompt/synchronization/reduction/empty_reduce.c
ompt/synchronization/reduction/tree_reduce.c
parallel/omp_parallel_reduction.c

Depends on D123193

Diff Detail

Event Timeline

t-msn created this revision.Apr 7 2022, 9:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 7 2022, 9:03 PM
t-msn added a comment.Apr 7 2022, 9:09 PM

There are following reduction tests:

$ LIT_OPTS="--show-pass --filter=reduction" ninja check-openmp
********************
Passed Tests (15):
  libarcher :: reduction/parallel-reduction-nowait.c
  libarcher :: reduction/parallel-reduction.c
  libomp :: misc_bugs/teams-reduction.c
  libomp :: ompt/synchronization/reduction/empty_reduce.c
  libomp :: ompt/synchronization/reduction/tree_reduce.c
  libomp :: parallel/omp_parallel_reduction.c
  libomp :: tasking/kmp_task_reduction_nest.cpp
  libomp :: tasking/task_reduction1.c
  libomp :: tasking/task_reduction2.c
  libomp :: tasking/task_reduction3.c
  libomp :: tasking/task_reduction4.c
  libomp :: worksharing/for/omp_for_reduction.c
  libomp :: worksharing/for/omp_parallel_for_reduction.c
  libomp :: worksharing/sections/omp_parallel_sections_reduction.c
  libomp :: worksharing/sections/omp_sections_reduction.c

I thought these threes are enough to check each barrier's basic functionality:

libomp :: ompt/synchronization/reduction/empty_reduce.c
libomp :: ompt/synchronization/reduction/tree_reduce.c
libomp :: parallel/omp_parallel_reduction.c

Let me know if this is wrong. Dependency of D123193 is to pass the tests.

t-msn added a project: Restricted Project.
t-msn added a subscriber: openmp-commits.
t-msn published this revision for review.Apr 7 2022, 9:13 PM