-
Notifications
You must be signed in to change notification settings - Fork 864
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
and add to mac os github CI Signed-off-by: Howard Pritchard <[email protected]>
- Loading branch information
Showing
3 changed files
with
31 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#include "mpi.h" | ||
#include <stdio.h> | ||
|
||
/* | ||
* Simple test to demonstrate several aspects of MPI 4 Sessions and related | ||
* functionality. See sections 11.3 and 11.4 of the MPI 4 standard for more | ||
* details. | ||
*/ | ||
|
||
int main(int argc, char** argv) { | ||
MPI_Info info; | ||
MPI_Session s1, s2; | ||
|
||
#if 0 | ||
/* need PR https://github.com/open-mpi/ompi/pull/12868 to be merged in | ||
* before this can be uncommented. | ||
*/ | ||
MPI_Info_create(&info); | ||
#endif | ||
MPI_Session_init(MPI_INFO_NULL, MPI_ERRORS_RETURN, &s1); | ||
MPI_Session_finalize(&s1); | ||
MPI_Session_init(MPI_INFO_NULL, MPI_ERRORS_RETURN, &s2); | ||
MPI_Session_finalize(&s2); | ||
} |