Commit b4fe5102 authored by Shane Snyder's avatar Shane Snyder
Browse files

ifdef wrap mpi logic in simple test

parent c06f75e8
......@@ -110,8 +110,10 @@ int main(int argc, char *argv[])
ABT_init(argc, argv);
#if HAVE_MPI
if (strcmp(mode, "mpi") == 0)
MPI_Init(&argc, &argv);
#endif
/* init HG */
hgcl = HG_Init(addr_str, HG_TRUE);
......@@ -142,13 +144,13 @@ int main(int argc, char *argv[])
margo_finalize(mid);
#ifndef SWIM_FORCE_FAIL
if(hgctx) HG_Context_destroy(hgctx);
if(hgcl) HG_Finalize(hgcl);
#endif
#if HAVE_MPI
if (strcmp(mode, "mpi") == 0)
MPI_Finalize();
#endif
ABT_finalize();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment