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

Loop indices not found with 2D array #607

Open
elsagermann opened this issue Apr 26, 2021 · 0 comments
Open

Loop indices not found with 2D array #607

elsagermann opened this issue Apr 26, 2021 · 0 comments

Comments

@elsagermann
Copy link

elsagermann commented Apr 26, 2021

When using a 2D array using indice notation for the first dimension and array notation for the second dimension claw expand is not able to expand it correctly.

Original code

   !$ACC PARALLEL DEFAULT(NONE)
   !$ACC LOOP GANG VECTOR
   !$claw expand
   pgcripr(jj,1:klev) = zgcripr(1:klev)
   $claw end expand
   $ACC END PARALLEL

Transformation code

   !$ACC PARALLEL DEFAULT(NONE)
   !$ACC LOOP GANG VECTOR
   DO claw_induction_1 = 1 , klev
    pgcripr ( jj , 1 : klev ) = zgcripr ( claw_induction_1 )
   END DO
   !$ACC END PARALLEL

Expected code

   !$ACC PARALLEL DEFAULT(NONE)
   !$ACC LOOP GANG VECTOR
   DO claw_induction_1 = 1 , klev
    pgcripr ( jj , claw_induction_1 ) = zgcripr ( claw_induction_1 )
   END DO
   !$ACC END PARALLEL

Execution of clawfc

# Command used to apply the transformation

Related issues (if any)

Issue #00

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant