-
Notifications
You must be signed in to change notification settings - Fork 31
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
base: dev
Are you sure you want to change the base?
Conversation
Separate PR to fix up the new MPI TAP test as discussed in #587 |
e251b0a
to
4f65e49
Compare
#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) |
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.
@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.
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 @adammoody! I'll grab this and test it out.
Adding first TAP-based test case using multiple MPI ranks.
Description
Motivation and Context
How Has This Been Tested?
Types of changes
Checklist: