Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use SingleStreamRegion and NoSyncRegion in MLMG solve #4355

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

AlexanderSinn
Copy link
Member

Summary

Additional background

Checklist

The proposed changes:

  • fix a bug or incorrect behavior in AMReX
  • add new capabilities to AMReX
  • changes answers in the test suite to more than roundoff level
  • are likely to significantly affect the results of downstream AMReX users
  • include documentation in the code and/or rst files, if appropriate

@@ -374,6 +374,9 @@
{
BL_PROFILE("MLMG::solve()");

[[maybe_unused]] Gpu::SingleStreamRegion single_strean_reg;
[[maybe_unused]] Gpu::NoSyncRegion no_sync_reg;

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable no_sync_reg is not used.
@@ -374,6 +374,9 @@
{
BL_PROFILE("MLMG::solve()");

[[maybe_unused]] Gpu::SingleStreamRegion single_stream_reg;

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable single_stream_reg is not used.
@@ -374,6 +374,9 @@ MLMGT<MF>::solve (const Vector<AMF*>& a_sol, const Vector<AMF const*>& a_rhs,
{
BL_PROFILE("MLMG::solve()");

[[maybe_unused]] Gpu::SingleStreamRegion single_stream_reg;
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should make this a runtime option. For example, maybe we can add a member function MLMG::setNoGpuSync to control whether we want to avoid gpu sync if possible (and use single stream for safety).

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

Successfully merging this pull request may close these issues.

2 participants