Skip to content

Conversation

@awlauria
Copy link
Contributor

@awlauria awlauria commented Jan 8, 2021

Port from open-mpi/ompi#8352

If the user asks for a hostfile/hostlist inside of a managed allocation,
make sure that rmaps filters these and maps processes based on them. Otherwise,
it can result in inconsistent mappings across root and compute nodes if the
user orders their hostfile differently than the resource manager.

Signed-off-by: Austen Lauria <[email protected]>
For example:

$. bsub -n 40 -m "node1 node2" mpirun -np 6 -host node1:2,node2:4 hostname

would not map two hostname processes to node1 and four to node2.
Instead, it would still think that each node1
and node2 had (for example) 20 cpu resources, and map accordingly.

Signed-off-by: Austen Lauria <[email protected]>
@awlauria
Copy link
Contributor Author

awlauria commented Jan 8, 2021

I hand tested this as well under LSF + ompi master, and it seems to work the same as v4.0.x.

I did run into build issues documented in #597.

@jjhursey
Copy link
Member

jjhursey commented Jan 8, 2021

Thanks for the fix. Yeah I need to get back to PR #597 - sorry for the delay on that.

@rhc54 rhc54 merged commit 4d7ba56 into openpmix:master Jan 8, 2021
@awlauria awlauria deleted the fix_managed_allocation branch January 8, 2021 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants