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

kcaching module variables #553

Open
remodietlicher opened this issue Jun 6, 2019 · 0 comments
Open

kcaching module variables #553

remodietlicher opened this issue Jun 6, 2019 · 0 comments

Comments

@remodietlicher
Copy link
Collaborator

remodietlicher commented Jun 6, 2019

Kcaching does not work if used on module variables and fails building with:
Variable x defined in the data clause has not been found

Original code

! Original code before transformation
use data, only: x
[...]
submodule dummy(a,b,c)
[...]
    DO i=1,10
        !$claw kcache data(x)
        y = x(i) * 10
        z = x(i) * y
    END DO
[...]
end submodule dummy

Expected code

! Expected code
use data, only: x
[...]
submodule dummy(a,b,c)
[...]
    DO i=1,10
        x_k = x(i)
        y = x_k * 10
        z = x_k * y
    END DO
[...]
end submodule dummy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants