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

Even smarter smart-barriers #141

Open
rogerpearce opened this issue Mar 1, 2023 · 0 comments
Open

Even smarter smart-barriers #141

rogerpearce opened this issue Mar 1, 2023 · 0 comments

Comments

@rogerpearce
Copy link
Collaborator

rogerpearce commented Mar 1, 2023

I think we should add support for a post-barrier registered call back in comm. This would allow any registered class to be notified right after a barrier has completed.

On a similar topic, I've been thinking it might be a nice feature to support a RAII style barrier to identify "asynchronous regions" and potentially name them for logging purposes. For example:

  {
     auto region = ygm::make_async_region(comm, "My Very Important Calculation");
     // Could add support for optional logging in region
     
     //
     //   lots of async operations
     //
   
     // region goes out of scope, causes barrier, optionally dumps logging in post-barrier
  }

Edit: nested regions could be supported.

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