mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-10 16:32:11 +01:00
16 lines
287 B
Fortran
16 lines
287 B
Fortran
! @@name: SIMD.4
|
|
! @@type: F-free
|
|
! @@operation: compile
|
|
! @@expect: success
|
|
! @@version: omp_4.0
|
|
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
|