You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MLIR][OpenMP] More robust support for target SPMD (#161)
This patch fixes `TargetOp::getInnermostCapturedOmpOp()` to avoid detecting as
captured by the top target construct other constructs nested inside of a loop.
This prevents the `omp.target` verifier from incorrectly flagging valid SPMD
loops, like in the following example:
```f90
subroutine foo(n)
implicit none
integer, intent(in) :: n
integer :: i, j
!$omp target teams distribute parallel do
do i=1,n
!$omp simd
do j=1,n
call bar()
enddo
enddo
end subroutine foo
```
0 commit comments