[Openmp-commits] [PATCH] D21842: Fix omp_sections_nowait.c test to address Bugzilla Bug 28336

Jonathan Peyton via Openmp-commits openmp-commits at lists.llvm.org
Wed Jun 29 10:12:07 PDT 2016


jlpeyton created this revision.
jlpeyton added a reviewer: hfinkel.
jlpeyton added subscribers: openmp-commits, ABataev.
jlpeyton set the repository for this revision to rL LLVM.

This rewrite of the omp_sections_nowait.c test file causes it to hang if the nowait is not respected.  If the nowait isn't respected, the lone thread which can escape the first sections construct will just sleep at a barrier which shouldn't exist.  All reliance on timers is taken out.  For good measure, the test makes sure that all eight sections are executed as well.  The test should take no longer than a few seconds on any modern machine.

Repository:
  rL LLVM

http://reviews.llvm.org/D21842

Files:
  test/worksharing/sections/omp_sections_nowait.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21842.62234.patch
Type: text/x-patch
Size: 3321 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20160629/744feabb/attachment.bin>


More information about the Openmp-commits mailing list