model-net-mpi-replay-main.c 849 Bytes
Newer Older
1 2 3 4 5 6
/*
 * Copyright (C) 2014 University of Chicago.
 * See COPYRIGHT notice in top-level directory.
 *
 */
#include <mpi.h>
7 8 9 10 11

#ifdef USE_ONLINE
#include <abt.h>
#endif

12
#include "codes/codes-mpi-replay.h"
13 14 15


int main(int argc, char** argv) {
16

17
  MPI_Init(&argc,&argv);
18 19 20
#ifdef USE_ONLINE
  ABT_init(argc, argv);
#endif
21 22 23 24 25 26 27 28 29 30 31
//  int rank, size;
//  MPI_Comm_rank(MPI_COMM_WORLD,&rank);
//  MPI_Comm_size(MPI_COMM_WORLD,&size);

//  MPI_Comm comm;
//  MPI_Comm_split(MPI_COMM_WORLD, rank < 2, rank, &comm);

//  if(rank < 2)
//  	modelnet_mpi_replay(comm,&argc,&argv);

   modelnet_mpi_replay(MPI_COMM_WORLD,&argc,&argv);
32
  int flag;
33 34 35 36
#ifdef USE_ONLINE
  ABT_finalize();
#endif

37 38
  MPI_Finalized(&flag);
	if(!flag) MPI_Finalize();
39 40 41 42 43 44 45 46 47 48 49
	return 0;
}

/*
 * Local variables:
 *  c-indent-level: 4
 *  c-basic-offset: 4
 * End:
 *
 * vim: ft=c ts=8 sts=4 sw=4 expandtab
 */