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

add the ability print warnings from GPU #1629

Merged
merged 3 commits into from
Jul 26, 2024

Conversation

zingale
Copy link
Member

@zingale zingale commented Jul 23, 2024

this is enabled with USE_GPU_PRINTF

@zingale zingale changed the title [WIP] add the ability print warnings from GPU add the ability print warnings from GPU Jul 23, 2024
@zingale
Copy link
Member Author

zingale commented Jul 23, 2024

I've tested this with CUDA and it seems to work.

For Castro, we'll probably want to add a flush after the burner call once this is in.

@@ -35,6 +35,10 @@ endif
# Require C++17
CXXSTD := c++17

ifeq ($(USE_GPU_PRINTF),TRUE)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it necessary to make sure this can be turned on only when we use GPU?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so, since it should only be used in an #elif on #ifndef AMREX_USE_GPU, but I can add it just to be safe

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah okay.

@zingale zingale merged commit ecbc595 into AMReX-Astro:development Jul 26, 2024
28 checks passed
@zingale zingale deleted the enable_gpu_printf branch July 26, 2024 13:07
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

Successfully merging this pull request may close these issues.

2 participants