model-net-mpi-replay-main.c 714 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
#include "codes/codes-mpi-replay.h"
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23


int main(int argc, char** argv) {
  MPI_Init(&argc,&argv);
  
//  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);
24 25 26
  int flag;
  MPI_Finalized(&flag);
	if(!flag) MPI_Finalize();
27 28 29 30 31 32 33 34 35 36 37
	return 0;
}

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