mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-10 16:32:11 +01:00
Merge pull request #14 from jakubjelinek/master
Fix a pasto - loop simd construct in Fortran is do simd rather than
This commit is contained in:
commit
510fd1f0f0
@ -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