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

acc seq bug #317

Closed
ecossevin opened this issue May 23, 2024 · 1 comment · Fixed by #324
Closed

acc seq bug #317

ecossevin opened this issue May 23, 2024 · 1 comment · Fixed by #324
Assignees
Labels
bug Something isn't working

Comments

@ecossevin
Copy link

ecossevin commented May 23, 2024

I'm trying to add acc seq to a routine spec, and the "seq" disappears :

test.py :

from loki import *
src_file = "sub.F90"
src_name = "TEST"
source = Sourcefile.from_file(src_file)
routine = source[src_name]

routine.spec.insert(0,ir.Pragma(keyword='acc', content='routine ('+    routine.name+') seq'))
routine.spec.insert(1,ir.Comment(text=''))

print(fgen(routine))

sub.F90 :

SUBROUTINE TEST()

IMPLICIT NONE

END SUBROUTINE TEST

result :

[Loki::Sourcefile] Constructed from sub.F90 in 0.02s
SUBROUTINE TEST ()
  
!$acc routine( TEST )
  
  IMPLICIT NONE
  
END SUBROUTINE TEST
@reuterbal
Copy link
Collaborator

Confirmed and fixed in #324. There was a problem in the get_pragma_parameters utility that would ignore clauses without parentheses that occur after a clause with parentheses.

@reuterbal reuterbal added the bug Something isn't working label Jun 10, 2024
@reuterbal reuterbal self-assigned this Jun 10, 2024
mlange05 pushed a commit that referenced this issue Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants