[Openmp-commits] [PATCH] D123195: [OpenMP] libomp: Fix dist barrier for nested parallel/team

Misono Tomohiro via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Thu Apr 7 21:14:01 PDT 2022


t-msn added a comment.

Hi
I saw check-openmp hang on both x86 and arm64. Adding timeout value to lit option gives me the following result:

  $ env LIT_OPTS="--show-xfail --timeout=60 -j 1"  CHECK_OPENMP_ENV="KMP_FORKJOIN_BARRIER_PATTERN=dist,dist KMP_PLAIN_BARRIER_PATTERN=dist,dist KMP_REDUCTION_BARRIER_PATTERN=dist,dist" ninja check-openmp
  ...
  Timed Out Tests (15):
    libomp :: affinity/bug-nested.c
    libomp :: affinity/format/fields_values.c
    libomp :: affinity/format/nested.c
    libomp :: affinity/format/nested2.c
    libomp :: affinity/format/nested_mixed.c
    libomp :: env/omp_thread_limit.c
    libomp :: ompt/misc/threads_nested.c
    libomp :: ompt/parallel/nested.c
    libomp :: ompt/parallel/nested_lwt.c
    libomp :: ompt/parallel/nested_thread_num.c
    libomp :: ompt/parallel/nested_threadnum.c
    libomp :: ompt/teams/parallel_team.c
    libomp :: parallel/omp_nested.c
    libomp :: teams/kmp_num_teams.c
    libomp :: worksharing/for/omp_monotonic_schedule_set_get.c

As these tests are related to nest/teams, I spotted suspected code path. With this patch, these timeout failures are gone.
(In addition to above timeouts, ompt/synchronization/reduction/tree_reduce.c is failed. I believe this is a test problem and partially addressed in D123359 <https://reviews.llvm.org/D123359>)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D123195/new/

https://reviews.llvm.org/D123195



More information about the Openmp-commits mailing list