-
Notifications
You must be signed in to change notification settings - Fork 15
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
Re-factor MPI native tests to run as distributed tests #186
Conversation
71d78f6
to
45b90ef
Compare
45b90ef
to
9f03987
Compare
8456a64
to
a90cc13
Compare
@@ -43,6 +43,33 @@ std::set<std::string> getExecGraphHosts(const ExecGraph& graph) | |||
return getExecGraphHostsForNode(graph.rootNode); | |||
} | |||
|
|||
std::vector<std::string> getMpiRankHostsFromExecGraphNode( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reckon this method may be too MPI-specific for ExecGraph.cpp
but I am not sure where to put it.
a90cc13
to
d6a459a
Compare
- name: "Build examples" | ||
run: inv examples | ||
- name: "Run example to check" | ||
run: inv examples.execute check | ||
|
||
mpi_native: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The mpi_native
tests will now run as part of the distributed tests. What also means that will be checked against each new commit in a PR (not just when bumping docker images).
@@ -1,15 +1,9 @@ | |||
#include <faabric/mpi/mpi.h> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For all MPI examples I've just had to remove the main
function, and change the method name and namespace.
Note that I've opted to add a nested namespace, tests::mpi
, as some function names where quite general.
48f3b86
to
347f338
Compare
ef2344c
to
2df20de
Compare
2df20de
to
e3265cd
Compare
May re-open this in the future. |
In this PR I adapt all the existing
mpi-native
tests to run in our current distributed test setting. Most of the code in place can be re-used with very minimal changes.Two tests are left with the
[.]
tag as they usedMPI_Win_create
which we removed some time ago.