-
Notifications
You must be signed in to change notification settings - Fork 18
Adding support for MPI serial library #696
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| #include "mpi.h" | ||
| #include "pio.h" | ||
| #include "pio_internal.h" | ||
| #include "pio_minmax.h" | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -221,12 +221,17 @@ int test_gatherw_contig_block_decomp(MPI_Comm comm, int wrank, int wsz) | |
| recvcounts[i] = 1; | ||
| rdispls[i] = i * LOCAL_SZ * sizeof(double); | ||
|
|
||
| #ifndef MPI_SERIAL | ||
| ret = MPI_Type_dup(sendtype, &(recvtypes[i])); | ||
| #else | ||
| /* MPI serial does not support MPI_Type_dup() */ | ||
| ret = MPI_Type_contiguous(LOCAL_SZ, MPI_DOUBLE, &(recvtypes[i])); | ||
| #endif | ||
|
Comment on lines
225
to
+229
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fixed and rebased branch |
||
| if(ret == MPI_SUCCESS){ | ||
| ret = MPI_Type_commit(&(recvtypes[i])); | ||
| } | ||
| if(ret != MPI_SUCCESS){ | ||
| LOG_RANK0(wrank, "ERROR: Unable to create MPI dup of send type to recv doubles\n"); | ||
| LOG_RANK0(wrank, "ERROR: Unable to create recv type (same as send type) to recv doubles\n"); | ||
| return PIO_EINTERNAL; | ||
|
Comment on lines
230
to
235
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is probably a bigger change than what can fit in this PR (There are multiple cases in tests, across several tests, where we don't handle freeing of resources on fails). IMO, we can fix this (free resources when tests fail) in a later PR. |
||
| } | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| #include "mpi.h" | ||
| #include <iostream> | ||
| #include <sstream> | ||
| #include <string> | ||
|
|
||
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 think we can skip adding MPI serial support for ADIOS (IMO, we are never going to need that)