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.
We may need to relax the check if this does not fix the problem.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Thanks for the fix! I'm quite confident that this change will fix the sporiadic test failures (most probably under high system load).
I suggest to refer D122107 in the commit message.
And I also suggest to use the actual team size in the OMPT_WAIT, just to prevent deadlock in case less threads are provided.
openmp/runtime/test/ompt/worksharing/for/loop_dispatch.c | ||
---|---|---|
26 | ||
36 |