[OpenMP] Possible fix for sporadic test failure from loop_dispatch.c
authorHansang Bae <hansang.bae@intel.com>
Mon, 2 May 2022 18:42:26 +0000 (13:42 -0500)
committerHansang Bae <hansang.bae@intel.com>
Tue, 3 May 2022 19:46:32 +0000 (14:46 -0500)
commit7e23b46ab8da7ccd038a0987e947e4bec5ce2d4b
treeab6a29e55e13aa060f596ceb122226eade8774f5
parent39492ba5d69ebaba9d1e65ad57cdda0f60796cf8
[OpenMP] Possible fix for sporadic test failure from loop_dispatch.c

This patch tries to fix sporadic test failure after the change
https://reviews.llvm.org/D122107.
Made the test wait until every thread has at least one loop iteration.

Differential Revision: https://reviews.llvm.org/D124812
openmp/runtime/test/ompt/worksharing/for/loop_dispatch.c