-
Notifications
You must be signed in to change notification settings - Fork 71
Fixes for distributed and state tests #609
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
Conversation
@@ -18,10 +18,10 @@ using namespace faabric::scheduler; | |||
using namespace WAVM; | |||
|
|||
#define MPI_FUNC(str) \ | |||
SPDLOG_DEBUG("MPI-{} {}", executingContext.getRank(), str); | |||
SPDLOG_TRACE("MPI-{} {}", executingContext.getRank(), str); |
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.
These were printing out so much logging information in the dist tests that it was difficult to debug.
@@ -219,55 +219,47 @@ interfering with the tests: | |||
docker-compose down | |||
``` | |||
|
|||
Start the distributed tests server: | |||
Make sure your local setup is built, along with the distributed tests: |
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.
Slight rearrange of these distributed test docs which I found a little confusing before.
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.
Agree! 🤣
faabric::Message result = checkMpiFunc("mpi_pi"); | ||
std::string output = result.outputdata(); | ||
REQUIRE(faabric::util::startsWith(output, "Pi estimate: 3.1")); | ||
} |
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.
Noticed that this wasn't included in tests so I added it for good measure.
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.
Nice to see the troublesome omp_static_for
is back!
PS: friendly reminder to update the submodules before merging this in.
@@ -219,55 +219,47 @@ interfering with the tests: | |||
docker-compose down | |||
``` | |||
|
|||
Start the distributed tests server: | |||
Make sure your local setup is built, along with the distributed tests: |
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.
Agree! 🤣
@@ -3,12 +3,14 @@ | |||
#include "fixtures.h" | |||
|
|||
#include <faabric/scheduler/Scheduler.h> | |||
#include <faabric/util/string_tools.h> | |||
|
|||
#define PI_FUNCTION "pi_faasm" |
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.
Very minor, but it feels a bit odd that this is the only function with its name #define
-ed and also that it follows a different format than MPI. I would have expected it to be called omp_pi
.
Haha yes, wonder how long it will survive for this time 😄 |
Changes:
demo/pi
function (distributed Pi calculation).This requires these two PRs to be merged in before closing: