mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-07 23:22:11 +01:00
16 lines
281 B
Fortran
16 lines
281 B
Fortran
! @@name: SIMD.4f
|
|
! @@type: F-free
|
|
! @@compilable: yes
|
|
! @@linkable: no
|
|
! @@expect: success
|
|
subroutine work( b, n, m )
|
|
implicit none
|
|
real :: b(n)
|
|
integer :: i,n,m
|
|
|
|
!$omp simd safelen(16)
|
|
do i = m+1, n
|
|
b(i) = b(i-m) - 1.0
|
|
end do
|
|
end subroutine work
|