]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/mpi/detail/mpi_datatype_primitive.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / mpi / detail / mpi_datatype_primitive.hpp
index 6a82624e4397865463e067b5a8c56bff4e96a326..fc05d78612e6492dd8aea0291a0f7014e18109bc 100644 (file)
@@ -50,7 +50,7 @@ public:
      : is_committed(false),
        origin()
     {
-#if defined(MPI_VERSION) && MPI_VERSION >= 2
+#if BOOST_MPI_VERSION >= 2
       BOOST_MPI_CHECK_RESULT(MPI_Get_address,(const_cast<void*>(orig), &origin));
 #else
       BOOST_MPI_CHECK_RESULT(MPI_Address,(const_cast<void*>(orig), &origin));
@@ -77,7 +77,7 @@ public:
     {
       if (!is_committed)
       {
-#if defined(MPI_VERSION) && MPI_VERSION >= 2
+#if BOOST_MPI_VERSION >= 2
        BOOST_MPI_CHECK_RESULT(MPI_Type_create_struct,
                     (
                       addresses.size(),
@@ -120,7 +120,7 @@ private:
       // store address, type and length
 
       MPI_Aint a;
-#if defined(MPI_VERSION) && MPI_VERSION >= 2
+#if BOOST_MPI_VERSION >= 2
      BOOST_MPI_CHECK_RESULT(MPI_Get_address,(const_cast<void*>(p), &a));
 #else
      BOOST_MPI_CHECK_RESULT(MPI_Address,(const_cast<void*>(p), &a));