File tree Expand file tree Collapse file tree 4 files changed +36
-1
lines changed Expand file tree Collapse file tree 4 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 15301530/session /session_psets
15311531/session /session_self
15321532/session /session_bsend
1533+ /session /session_local_only
15331534/spawn /concurrent_spawns
15341535/spawn /disconnect
15351536/spawn /disconnect2
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ noinst_PROGRAMS = \
1616 session_re_init \
1717 session_psets \
1818 session_self \
19- session_bsend
19+ session_bsend \
20+ session_local_only
2021
2122session_mult_init_SOURCES = session.c
2223session_mult_init_CPPFLAGS = -DMULT_INIT $(AM_CPPFLAGS )
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (C) by Argonne National Laboratory
3+ * See COPYRIGHT in top-level directory
4+ */
5+
6+ #include "mpi.h"
7+ #include "stdio.h"
8+
9+ int main (int argc , char * argv [])
10+ {
11+ MPI_Session session ;
12+ MPI_Group group ;
13+ int rank , size ;
14+
15+ MPI_Session_init (MPI_INFO_NULL , MPI_ERRORS_RETURN , & session );
16+
17+ MPI_Group_from_session_pset (session , "mpi://world" , & group );
18+ MPI_Group_rank (group , & rank );
19+ MPI_Group_size (group , & size );
20+ if (size < 3 ) {
21+ /* no communicator so directly call errhandler */
22+ MPI_Session_call_errhandler (session , 1 );
23+ }
24+
25+ MPI_Group_free (& group );
26+ MPI_Session_finalize (& session );
27+ if (rank == 0 ) {
28+ printf ("No Errors\n" );
29+ }
30+
31+ return 0 ;
32+ }
Original file line number Diff line number Diff line change @@ -5,3 +5,4 @@ session_re_init 4
55session_psets 1
66session_self 1
77session_bsend 2
8+ session_non_coll 2 timeLimit=10 arg=: arg=-n arg=1 arg=true
You can’t perform that action at this time.
0 commit comments