mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-10 08:22:11 +01:00
Fix a pasto - loop simd construct in Fortran is do simd rather than
for simd.
This commit is contained in:
parent
b18b69504b
commit
4b655aa21a
@ -8,7 +8,7 @@ subroutine work( a, b, c, n )
|
|||||||
integer :: i,j,n
|
integer :: i,j,n
|
||||||
double precision :: a(n,n), b(n,n), c(n,n), tmp
|
double precision :: a(n,n), b(n,n), c(n,n), tmp
|
||||||
|
|
||||||
!$omp for simd collapse(2) private(tmp)
|
!$omp do simd collapse(2) private(tmp)
|
||||||
do j = 1,n
|
do j = 1,n
|
||||||
do i = 1,n
|
do i = 1,n
|
||||||
tmp = a(i,j) + b(i,j)
|
tmp = a(i,j) + b(i,j)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user