[Darshan-commits] [Git][darshan/darshan][autoperf-mod-update] temporary autoconf check for MPI v3 for APMPI

Shane Snyder xgitlab at cels.anl.gov
Tue Mar 23 15:36:58 CDT 2021



Shane Snyder pushed to branch autoperf-mod-update at darshan / darshan


Commits:
df11e9ac by Shane Snyder at 2021-03-23T20:36:00+00:00
temporary autoconf check for MPI v3 for APMPI

- - - - -


2 changed files:

- darshan-runtime/configure
- darshan-runtime/configure.in


Changes:

=====================================
darshan-runtime/configure
=====================================
@@ -4949,6 +4949,9 @@ _ACEOF
 if ac_fn_c_try_compile "$LINENO"; then :
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
+     if test "x$BUILD_APMPI_MODULE" = "x1"; then :
+  as_fn_error $? "APMPI module requires MPI version 3+" "$LINENO" 5
+fi
 else
   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
 $as_echo "no" >&6; }


=====================================
darshan-runtime/configure.in
=====================================
@@ -462,8 +462,10 @@ AC_TRY_COMPILE(
         {return 0;}
     ],
     [],
-    AC_MSG_RESULT(yes),
-    AC_MSG_RESULT(no)
+    [AC_MSG_RESULT(yes)
+     AS_IF([test "x$BUILD_APMPI_MODULE" = "x1"],
+	   AC_MSG_ERROR(APMPI module requires MPI version 3+))],
+    [AC_MSG_RESULT(no)
 
     # unable to compile without const qualifiers.  Let's try again with
     # const qualifiers.
@@ -480,7 +482,7 @@ AC_TRY_COMPILE(
         AC_DEFINE(HAVE_MPI_CONST, 1, Define if MPI prototypes use const qualifier),
         ,
         AC_MSG_ERROR(Darshan is unable to find a compatible MPI_File_open prototype)
-    )
+    )]
 )
 
 # determine if mpicc can create shared libraries that use MPI functions



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/-/commit/df11e9ac6d100e2ef4eb158d3103c6b0bf182255

-- 
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/-/commit/df11e9ac6d100e2ef4eb158d3103c6b0bf182255
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/20210323/8e22e6e6/attachment-0001.html>


More information about the Darshan-commits mailing list