forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 ```
- Loading branch information
Showing
2 changed files
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters