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

Create a way to query the number of co-locales on a node #26227

Open
bradcray opened this issue Nov 12, 2024 · 0 comments
Open

Create a way to query the number of co-locales on a node #26227

bradcray opened this issue Nov 12, 2024 · 0 comments

Comments

@bradcray
Copy link
Member

In a discussion in https://github.com/Cray/chapel-private/issues/6844, we discussed that it could be useful to have some sort of query available to Chapel programmers, like here.numCoLocales() to query how many co-locales are running on a given node.

writeln(here.numColocales(), " locales are running on this compute node");

In that context, it came up because you could imagine wanting a benchmark or application to report its speeds as a rate per node vs. locale and may want to reason about the number of co-locales in doing so.  I could imagine it coming up in other cases as well, such as algorithms that may want to be sensitive to co-location of co-locales.

For starters, I'm imagining only supporting this on top-level locales, not sub-locales like GPUs.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant