Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect data dependencies in loops in parallelized subroutine #83

Open
clementval opened this issue Dec 15, 2016 · 0 comments
Open

Detect data dependencies in loops in parallelized subroutine #83

clementval opened this issue Dec 15, 2016 · 0 comments

Comments

@clementval
Copy link
Collaborator

Ability to detect data dependency in loops would be nice for the automatic generation of directive. In the example below, if we can detect that the i loop has no dependency, we can generate a !$acc loop directive instead of locking it with an !$acc loop seq directive.

do i = 1, ni
  do k = 1, nk
  end do 

  do k = 1, nk
  end do 

  do k = 1, nk
  end do 
end do
!$acc loop 
do i = 1, ni
  !$acc loop seq
  do k = 1, nk
  end do 

  !$acc loop seq
  do k = 1, nk
  end do 

  !$acc loop seq
  do k = 1, nk
  end do 
end do
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant