]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix libgomp.oacc-fortran/lib-13.f90 async bug
authorJulian Brown <julian@codesourcery.com>
Tue, 3 Sep 2019 14:57:05 +0000 (07:57 -0700)
committerThomas Schwinge <tschwinge@baylibre.com>
Mon, 19 May 2025 18:18:38 +0000 (20:18 +0200)
libgomp/
* testsuite/libgomp.oacc-fortran/lib-13.f90: End data region after
wait API calls.

libgomp/testsuite/libgomp.oacc-fortran/lib-13.f90

index deb2c28860484194059b47ff3a23c979d4a2de22..f6bd27a4701cb4cdd9490d4cccd65f4e4834d14d 100644 (file)
@@ -19,11 +19,10 @@ program main
         end do
       !$acc end parallel
     end do
-  !$acc end data
 
   call acc_wait_all_async (nprocs + 1)
-
   call acc_wait (nprocs + 1)
+  !$acc end data
 
   if (acc_async_test (1) .neqv. .TRUE.) stop 1
   if (acc_async_test (2) .neqv. .TRUE.) stop 2