[Darshan-commits] [Git][darshan/darshan][dev-no-mpi] add some missing ifdef wrapping in init

Shane Snyder xgitlab at cels.anl.gov
Thu Dec 5 16:22:51 CST 2019



Shane Snyder pushed to branch dev-no-mpi at darshan / darshan


Commits:
891fc582 by Shane Snyder at 2019-12-05T22:22:20Z
add some missing ifdef wrapping in init

- - - - -


1 changed file:

- darshan-runtime/lib/darshan-core-init-finalize.c


Changes:

=====================================
darshan-runtime/lib/darshan-core-init-finalize.c
=====================================
@@ -11,12 +11,15 @@
 
 #include <stdio.h>
 #include <stdlib.h>
+#ifdef HAVE_MPI
 #include <mpi.h>
+#endif
 
 #include "darshan.h"
 #include "darshan-core.h"
 #include "darshan-dynamic.h"
 
+#ifdef HAVE_MPI
 DARSHAN_FORWARD_DECL(PMPI_Finalize, int, ());
 DARSHAN_FORWARD_DECL(PMPI_Init, int, (int *argc, char ***argv));
 DARSHAN_FORWARD_DECL(PMPI_Init_thread, int, (int *argc, char ***argv, int required, int *provided));
@@ -85,6 +88,7 @@ int DARSHAN_DECL(MPI_Finalize)(void)
     return(ret);
 }
 DARSHAN_WRAPPER_MAP(PMPI_Finalize, int, (void), MPI_Finalize())
+#endif
 
 /*
  * Initialization hook that does not rely on MPI



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/891fc5826f7d35e84f3abb7c70ec6bc39352d140

-- 
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/891fc5826f7d35e84f3abb7c70ec6bc39352d140
You're receiving this email because of your account on xgitlab.cels.anl.gov.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20191205/ca2a0f94/attachment-0001.html>


More information about the Darshan-commits mailing list