-
Notifications
You must be signed in to change notification settings - Fork 13
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
pragma region attach bug #427
Comments
Hi @ecossevin , many thanks for this. This looks a lot like a problem I've recently fixes in this commit: Have you confirmed this is still a problem with either |
Yes I did a pip install of loki to have the newest version. Is there a command to check the version of loki ? |
Hi, can you please try what you get for Since loki is still distributed via git checkouts, you might also have to do something like
|
|
Hi @ecossevin , apologies, I've just looked at this in a little more detail, and I had already fixed this in one of my dev branches, but hadn't submitted the fix yet. I've just filed the fix as PR #431. Could you please confirm that this fixes your issue? |
What happened?
When I do with pragma region attach with NAME=CPTEND in the pragma, the pragma region isn't created.
What are the steps to reproduce the bug?
SUBROUTINE TEST()
IMPLICIT NONE
!$loki parallel PARALLEL, TARGET=OpenMP/OpenMPSingleColumn/OpenACCSingleColumn,NAME=CPTEND_NEW
!$loki end parallel
!$loki parallel PARALLEL, TARGET=OpenMP/OpenMPSingleColumn/OpenACCSingleColumn,NAME=CPTEND
!$loki end parallel
!$loki parallel PARALLEL, TARGET=OpenMP/OpenMPSingleColumn/OpenACCSingleColumn,NAME=ACNEBCOND
!$loki end parallel
!$loki parallel PARALLEL, TARGET=OpenMP/OpenMPSingleColumn/OpenACCSingleColumn,NAME=CPTEND
!$loki end parallel
!$loki parallel PARALLEL, TARGET=OpenMP/OpenMPSingleColumn/OpenACCSingleColumn,NAME=TOTO
!$loki end parallel
END SUBROUTINE TEST
from loki import *
src_file = "sub.F90"
src_name = "TEST"
source = Sourcefile.from_file(src_file)
routine = source[src_name]
with pragma_regions_attached(routine):
print(routine.body.body)
breakpoint()
Version
0.2.7 Latest
Platform (OS and architecture)
Linux pxdesrtls020 6.8.0-47-generic #47~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct 2 16:16:55 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Relevant log output
Accompanying data
No response
Organisation
No response
The text was updated successfully, but these errors were encountered: