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

Fixes for distributed and state tests #609

Merged
merged 13 commits into from
Mar 15, 2022
Merged

Fixes for distributed and state tests #609

merged 13 commits into from
Mar 15, 2022

Conversation

Shillaker
Copy link
Collaborator

@Shillaker Shillaker commented Mar 4, 2022

Changes:

  • Add state distributed test using demo/pi function (distributed Pi calculation).
  • Add tests running OpenMP and MPI Pi calculations.
  • Re-enable and fix all OpenMP tests.

This requires these two PRs to be merged in before closing:

@@ -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);
Copy link
Collaborator Author

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.

@Shillaker Shillaker self-assigned this Mar 11, 2022
@Shillaker Shillaker changed the title Distributed test for state Fixes for distributed tests Mar 15, 2022
@@ -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:
Copy link
Collaborator Author

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.

Copy link
Collaborator

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"));
}
Copy link
Collaborator Author

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.

@Shillaker Shillaker changed the title Fixes for distributed tests Fixes for distributed and state tests Mar 15, 2022
Copy link
Collaborator

@csegarragonz csegarragonz left a 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:
Copy link
Collaborator

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"
Copy link
Collaborator

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.

@Shillaker
Copy link
Collaborator Author

Nice to see the troublesome omp_static_for is back!

Haha yes, wonder how long it will survive for this time 😄

@Shillaker Shillaker merged commit 553c3d4 into main Mar 15, 2022
@Shillaker Shillaker deleted the pi-dist-test branch March 15, 2022 18:17
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.

None yet

2 participants