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

Further cleanup of the fabric and topology support #284

Merged
merged 1 commit into from
Oct 1, 2020

Conversation

rhc54
Copy link
Member

@rhc54 rhc54 commented Sep 24, 2020

Rename PMIx_Fabric_update_distances to PMIx_Fabric_compute_distances and
provide parameters to support computing of distances for given
topologies. This allows support for hetero situations.

Change PMIx_Get_cpuset so it actually returns the bitmap of the current
process or thread, as specified.

Add PMIx_Parse_cpuset_string to convert a string to an actual bitmap.

Signed-off-by: Ralph Castain rhc@pmix.org

@rhc54 rhc54 added this to the PMIx v4 Standard milestone Sep 24, 2020
@rhc54 rhc54 requested a review from jjhursey September 24, 2020 03:13
@rhc54 rhc54 self-assigned this Sep 24, 2020
jjhursey
jjhursey previously approved these changes Sep 24, 2020
Copy link
Member

@jjhursey jjhursey left a comment

Choose a reason for hiding this comment

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

This looks good per our conversation the other day.

@rhc54
Copy link
Member Author

rhc54 commented Sep 28, 2020

@jjhursey Worth taking another look at - I updated the compute_distance support to handle multiple device types (e.g., GPU) and not just fabric.

Rename PMIx_Fabric_update_distances to PMIx_Fabric_compute_distances and
provide parameters to support computing of distances for given
topologies. This allows support for hetero situations.

Change PMIx_Get_cpuset so it actually returns the bitmap of the current
process or thread, as specified.

Add PMIx_Parse_cpuset_string to convert a string to an actual bitmap.

Cleanup the distance computation APIs
Distances can be computed for many device types, not just fabric, so
rename the API accordingly and move it to the process locality area
since it is locality-related. Define a data type by which the caller can
specify the type(s) of device(s) they want distances to, along with the
topology and cpuset to use.

Signed-off-by: Ralph Castain <rhc@pmix.org>
@rhc54 rhc54 merged commit 95556c0 into pmix:master Oct 1, 2020
@rhc54 rhc54 deleted the rfc/nits branch October 1, 2020 00:15
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