Skip to content

Commit b7cc2d6

Browse files
committed
Add some output
1 parent e5d7760 commit b7cc2d6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lb/code/tests/init.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License
1515
*/
1616

17+
#include <stdio.h>
1718

1819
#include <adlb.h>
1920

@@ -23,12 +24,21 @@ main()
2324
int mpi_argc = 0;
2425
char** mpi_argv = NULL;
2526
MPI_Init(&mpi_argc, &mpi_argv);
27+
28+
int rank_world, size_world;
29+
MPI_Comm_rank(MPI_COMM_WORLD, &rank_world);
30+
MPI_Comm_size(MPI_COMM_WORLD, &size_world);
31+
printf("rank: %i/%i\n", rank_world, size_world);
32+
2633
int types = 0;
2734
int am_server;
2835
MPI_Comm adlb_comm;
2936
ADLB_Init(2, 1, &types, &am_server, MPI_COMM_WORLD, &adlb_comm);
3037

3138
ADLB_Finalize();
3239
MPI_Finalize();
40+
41+
if (rank_world == 0)
42+
printf("init.x: OK\n");
3343
return 0;
3444
}

0 commit comments

Comments
 (0)