Skip to content

Cannot have stop in accelerator region #797

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

Open
sbryngelson opened this issue Feb 3, 2025 · 1 comment · May be fixed by #813
Open

Cannot have stop in accelerator region #797

sbryngelson opened this issue Feb 3, 2025 · 1 comment · May be fixed by #813
Assignees
Labels
bug Something isn't working or doesn't seem right

Comments

@sbryngelson
Copy link
Member

PR #749 introduces several impermissible statements, at least on AMD GPU hardware and with Cray compilers (v >= 19). The problem is stop statements in the GPU kernels. Examples are here:

stop "Check cluterflag. Exiting."

if (intfc_rad(k, 1) <= 0._wp) stop "Negative bubble radius encountered, please reduce dt"

if (intfc_rad(k, 2) <= 0._wp) stop "Negative bubble radius encountered, please reduce dt"

if (intfc_rad(k, 2) <= 0._wp) stop "Negative bubble radius encountered, please reduce dt"

and so on and so forth.

@sbryngelson sbryngelson added the bug Something isn't working or doesn't seem right label Feb 3, 2025
@sbryngelson
Copy link
Member Author

@dgvacarevelo can you please have a look at this and figure out a workaround? It would be a great help. New compilers do not allow for stop statements in GPU compute regions, which makes sense to me. We can be more judicious, only performing these checks during I/O regions or something? Up to you. My preferred route is whatever is a quick fix but also does not duplicate a ton of code.

@dgvacarevelo dgvacarevelo linked a pull request Mar 31, 2025 that will close this issue
21 tasks
@dgvacarevelo dgvacarevelo removed a link to a pull request Mar 31, 2025
21 tasks
This was referenced Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working or doesn't seem right
Development

Successfully merging a pull request may close this issue.

2 participants