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 roctx support #30

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add roctx support #30

wants to merge 2 commits into from

Conversation

dmcdougall
Copy link
Collaborator

Feedback on consuming ROCm location and the ensuing makefile infrastructure would be especially appreciated.

Added roctx ranges around comms, and some important CG steps.  Also
added a build toggle to enable roctx support.
@dmcdougall dmcdougall requested a review from noelchalmers April 26, 2023 19:58
@dmcdougall
Copy link
Collaborator Author

This is intended to fix #29

Copy link
Member

@noelchalmers noelchalmers left a comment

Choose a reason for hiding this comment

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

Couple small things.

  1. I think a marker region to denote the CG solve that is measured for the FOM would be useful.
  2. I think this would be more useful if it was generalized. For example, analogous changes could also be adding nvtx markers.

@@ -115,7 +117,9 @@ int cg::Solve(solver_t& solver,
// x <= x + alpha*p
// r <= r - alpha*A*p
// dot(r,r)
if (MAXIT <= 100) roctxRangePush("cg::UpdateCG");
Copy link
Member

Choose a reason for hiding this comment

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

It's a little surprising that you're annotating the MPI comms, and the CG update, but nothing else? Any reason the CG update is so special?

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