[flang-commits] [flang] [flang][Lower] Treat directives with nested evaluations as constructs (PR #91614)
Razvan Lupusoru via flang-commits
flang-commits at lists.llvm.org
Fri May 10 08:15:23 PDT 2024
razvanlupusoru wrote:
The current implementation presented here resolves an issue I ran into:
```
subroutine acccase( var )
integer :: var
integer :: res(10)
select case ( var )
case ( 1 )
print *, "case 1"
!$acc serial
res(1) = 1
!$acc end serial
case ( 2 )
print *, "case 2"
case default
print *, "case default"
end select
end subroutine
```
The first iteration here, even if not perfect, is usable for some cases. I support the conversation on a more complete solution though - and seems to me that it can be done even if this first implementation is merged :) Thank you for looking into this!
https://github.com/llvm/llvm-project/pull/91614
More information about the flang-commits
mailing list