]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
[nvptx, libgomp, testsuite] Reduce recursion depth in declare_target-{1,2}.f90
authorTom de Vries <tom@codesourcery.com>
Thu, 26 Apr 2018 13:26:09 +0000 (13:26 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 26 Apr 2018 13:26:09 +0000 (13:26 +0000)
2018-04-26  Tom de Vries  <tom@codesourcery.com>

PR target/85519
* testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
recursion depth from 25 to 23.
* testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.

From-SVN: r259674

libgomp/ChangeLog
libgomp/testsuite/libgomp.fortran/examples-4/declare_target-1.f90
libgomp/testsuite/libgomp.fortran/examples-4/declare_target-2.f90

index 51a8aebfdae44c5ddff2bfc90d66b2d859d00cbd..4d622d9ff1dba28c7c65c99799ac6555394d5fc8 100644 (file)
@@ -1,3 +1,10 @@
+2018-04-26  Tom de Vries  <tom@codesourcery.com>
+
+       PR target/85519
+       * testsuite/libgomp.fortran/examples-4/declare_target-1.f90: Reduce
+       recursion depth from 25 to 23.
+       * testsuite/libgomp.fortran/examples-4/declare_target-2.f90: Same.
+
 2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
 
        * configure: Regenerated.
index df941eeaa2e542c755c67d6fd4094c702f349313..51de6b26b36802683af50130c261f4efede74d0d 100644 (file)
@@ -27,5 +27,7 @@ end module
 program e_53_1
   use e_53_1_mod, only : fib, fib_wrapper
   if (fib (15) /= fib_wrapper (15)) STOP 1
-  if (fib (25) /= fib_wrapper (25)) STOP 2
+  ! Reduced from 25 to 23, otherwise execution runs out of thread stack on
+  ! Nvidia Titan V.
+  if (fib (23) /= fib_wrapper (23)) STOP 2
 end program
index 9c315697275dfffeb137c290dea62ccd0e8f0ef9..76cce01a65881a77a1c052669a01287a9512c6c2 100644 (file)
@@ -4,9 +4,11 @@ program e_53_2
   !$omp declare target (fib)
   integer :: x, fib
   !$omp target map(from: x)
-    x = fib (25)
+    ! Reduced from 25 to 23, otherwise execution runs out of thread stack on
+    ! Nvidia Titan V.
+    x = fib (23)
   !$omp end target
-  if (x /= fib (25)) STOP 1
+  if (x /= fib (23)) STOP 1
 end program
 
 integer recursive function fib (n) result (f)