From 70414a9d2bdd61829f83bc0037ce8c75a9d06964 Mon Sep 17 00:00:00 2001 From: Julian Brown Date: Thu, 25 Jun 2020 07:40:53 -0700 Subject: [PATCH] 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 libgomp/ * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition. * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise. --- libgomp/ChangeLog.omp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libgomp/ChangeLog.omp b/libgomp/ChangeLog.omp index e407b9f43994..48be697a23e5 100644 --- a/libgomp/ChangeLog.omp +++ b/libgomp/ChangeLog.omp @@ -1,3 +1,8 @@ +2020-07-15 Julian Brown + + * testsuite/libgomp.oacc-fortran/collapse-1.f90: Fix race condition. + * testsuite/libgomp.oacc-fortran/collapse-2.f90: Likewise. + 2020-06-02 Kwok Cheung Yeung * testsuite/libgomp.oacc-c-c++-common/routine-wv-2.c (DoWorkVec): -- 2.47.3