public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc/devel/omp/gcc-11] openacc: Fix race condition in Fortran loop collapse tests
@ 2021-05-13 16:15 Kwok Yeung
  0 siblings, 0 replies; only message in thread
From: Kwok Yeung @ 2021-05-13 16:15 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:70414a9d2bdd61829f83bc0037ce8c75a9d06964

commit 70414a9d2bdd61829f83bc0037ce8c75a9d06964
Author: Julian Brown <julian@codesourcery.com>
Date:   Thu Jun 25 07:40:53 2020 -0700

    openacc: Fix race condition in Fortran loop collapse tests
    
    The gangs participating in a gang-partitioned loop are not all guaranteed
    to complete before some given gang continues to execute beyond that loop.
    This means that two existing test cases contain a race condition,
    because a loop that may be gang-partitioned is followed immediately by
    another loop.  The fix is to place the loops in separate parallel regions.
    
    2020-07-15  Julian Brown  <julian@codesourcery.com>
    
    libgomp/
            * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
            * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.

Diff:
---
 libgomp/ChangeLog.omp | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp
index e407b9f4399..48be697a23e 100644
--- a/libgomp/ChangeLog.omp
+++ b/libgomp/ChangeLog.omp
@@ -1,3 +1,8 @@
+2020-07-15  Julian Brown  <julian@codesourcery.com>
+
+	* testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition.
+	* testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise.
+
 2020-06-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
 
 	* testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c (DoWorkVec):


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-13 16:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-13 16:15 [gcc/devel/omp/gcc-11] openacc: Fix race condition in Fortran loop collapse tests Kwok Yeung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).