Skip to content

Commit

Permalink
Added long-missing "loop" directive
Browse files Browse the repository at this point in the history
  • Loading branch information
jefflarkin authored Nov 10, 2020
1 parent c3883a3 commit 17e9515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion saxpy_openacc_f.f90
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module saxpy_mod
subroutine saxpy(n, a, x, y)
integer :: n
real :: a, x(:), y(:)
!$acc parallel deviceptr(x,y)
!$acc parallel loop deviceptr(x,y)
y(:) = y(:) + a * x(:)
!$acc end parallel
end subroutine
Expand Down

0 comments on commit 17e9515

Please sign in to comment.