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

test open with multiple procs #591

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open

test open with multiple procs #591

wants to merge 2 commits into from

Conversation

adammoody
Copy link
Collaborator

@adammoody adammoody commented Dec 14, 2020

Adding first TAP-based test case using multiple MPI ranks.

Description

Motivation and Context

How Has This Been Tested?

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Performance enhancement (non-breaking change which improves efficiency)
  • Code cleanup (non-breaking change which makes code smaller or more readable)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Testing (addition of new tests or update to current tests)
  • Documentation (a change to man pages or other documentation)

Checklist:

  • My code follows the UnifyFS code style requirements.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • All commit messages are properly formatted.

@adammoody
Copy link
Collaborator Author

Separate PR to fix up the new MPI TAP test as discussed in #587

@adammoody adammoody force-pushed the mpitests branch 2 times, most recently from e251b0a to 4f65e49 Compare December 14, 2020 23:27
Comment on lines +16 to +26
#define all_ok(condition, comm, ...) \
do { \
int input = (int) condition; \
int output; \
MPI_Allreduce(&input, &output, 1, MPI_INT, MPI_LAND, comm); \
int rank; \
MPI_Comm_rank(comm, &rank); \
if (rank == 0) { \
ok_at_loc(__FILE__, __LINE__, output, __VA_ARGS__, NULL); \
} \
} while (0)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@CamStan , we can eventually move this kind of macro to an mpitap.h file. I haven't tested this just yet, but it at least compiles.

Copy link
Member

Choose a reason for hiding this comment

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

Nice @adammoody! I'll grab this and test it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

Successfully merging this pull request may close these issues.

2 participants