Commit ca9dc642 by Tom de Vries Committed by Tom de Vries

[nvptx, libgomp, testsuite] Reduce recursion depth in declare_target-{1,2}.f90

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
parent 1c53fa8c
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> 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
* configure: Regenerated. * configure: Regenerated.
......
...@@ -27,5 +27,7 @@ end module ...@@ -27,5 +27,7 @@ end module
program e_53_1 program e_53_1
use e_53_1_mod, only : fib, fib_wrapper use e_53_1_mod, only : fib, fib_wrapper
if (fib (15) /= fib_wrapper (15)) STOP 1 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 end program
...@@ -4,9 +4,11 @@ program e_53_2 ...@@ -4,9 +4,11 @@ program e_53_2
!$omp declare target (fib) !$omp declare target (fib)
integer :: x, fib integer :: x, fib
!$omp target map(from: x) !$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 !$omp end target
if (x /= fib (25)) STOP 1 if (x /= fib (23)) STOP 1
end program end program
integer recursive function fib (n) result (f) integer recursive function fib (n) result (f)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment