[1/4] openmp: Fix loop transformation tests
Checks
Commit Message
libgomp/ChangeLog:
* testsuite/libgomp.fortran/loop-transforms/tile-2.f90: Add reduction clause.
* testsuite/libgomp.fortran/loop-transforms/unroll-1.f90: Initialize var.
* testsuite/libgomp.fortran/loop-transforms/unroll-simd-1.f90: Add reduction
and initialization.
---
libgomp/testsuite/libgomp.fortran/loop-transforms/tile-2.f90 | 2 +-
libgomp/testsuite/libgomp.fortran/loop-transforms/unroll-1.f90 | 2 ++
.../libgomp.fortran/loop-transforms/unroll-simd-1.f90 | 3 ++-
3 files changed, 5 insertions(+), 2 deletions(-)
--
2.36.1
-----------------
Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstraße 201, 80634 München; Gesellschaft mit beschränkter Haftung; Geschäftsführer: Thomas Heurung, Frank Thürauf; Sitz der Gesellschaft: München; Registergericht München, HRB 106955
@@ -69,7 +69,7 @@ module test_functions
integer :: i,j
sum = 0
- !$omp parallel do collapse(2)
+ !$omp parallel do collapse(2) reduction(+:sum)
!$omp tile sizes(6,10)
do i = 1,10,3
do j = 1,10,3
@@ -8,6 +8,7 @@ module test_functions
integer :: i,j
+ sum = 0
!$omp do
do i = 1,10,3
!$omp unroll full
@@ -22,6 +23,7 @@ module test_functions
integer :: i,j
+ sum = 0
!$omp parallel do reduction(+:sum)
!$omp unroll partial(2)
do i = 1,10,3
@@ -9,7 +9,8 @@ module test_functions
integer :: i,j
- !$omp simd
+ sum = 0
+ !$omp simd reduction(+:sum)
do i = 1,10,3
!$omp unroll full
do j = 1,10,3