]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Addition of MPI2 conditional compilation tag. Plotenh
authorageay <ageay>
Thu, 15 Jul 2010 15:34:16 +0000 (15:34 +0000)
committerageay <ageay>
Thu, 15 Jul 2010 15:34:16 +0000 (15:34 +0000)
salome_adm/unix/config_files/check_mpi.m4
salome_adm/unix/config_files/check_openmpi.m4

index 4f9886cb45b744ddadd537d83734ccec72a932ca..d85f677274eae8a9e4bf190e0b2da1370b154fb1 100644 (file)
@@ -82,6 +82,12 @@ if test x"$MPIREQUESTED" = xyes; then
     mpi_ok=no
   fi
 
+  if test "$WITHMPI2" = "yes";then
+    mpi2_ok=yes
+  else
+    mpi2_ok=no
+  fi
+
 fi
 
 if test "$WITHMPI" = no; then
@@ -127,5 +133,8 @@ AC_SUBST(WITHMPI)
 AC_SUBST(MPI_INCLUDES)
 AC_SUBST(MPI_LIBS)
 AC_SUBST(mpi_ok)
+AC_SUBST(mpi2_ok)
 AM_CONDITIONAL(MPI_IS_OK, [test x"$mpi_ok" = xyes])
+AM_CONDITIONAL(MPI2_IS_OK, [test x"$mpi2_ok" = xyes])
+
 ])dnl
index e2ae5b36c5084431f80609af4049313342a6a77f..419fdd4ed7301368033a628224f64d98a38b452d 100644 (file)
@@ -52,11 +52,13 @@ if test "$WITHOPENMPI" = yes; then
   AC_MSG_CHECKING(for openmpi)
   if test "$WITHOPENMPI" = "yes";then
      mpi_ok=yes
+     mpi2_ok=$WITHMPI2
      WITHMPI=yes
      CPPFLAGS="-DOMPI_IGNORE_CXX_SEEK -DWITHOPENMPI $CPPFLAGS"
      AC_MSG_RESULT(yes)
   else
      mpi_ok=no
+     mpi2_ok=no
      WITHMPI=no
      AC_MSG_RESULT(no)
   fi