mirror of
https://github.com/boostorg/mpi.git
synced 2026-02-25 04:22:17 +00:00
Fix: adapt to renaming of serialization::array_wrapper (#30)
Fix: adapt to renaming of serialization::array_wrapper Tested that both graph_parallel and MPI work fine with El Capitan and clang, thanks for the patch!
This commit is contained in:
committed by
K. Noel Belcourt
parent
c85ec97d9c
commit
0dce8d2c2a
@@ -1257,7 +1257,7 @@ communicator::array_recv_impl(int source, int tag, T* values, int n,
|
||||
ia >> count;
|
||||
|
||||
// Deserialize the data in the message
|
||||
boost::serialization::array<T> arr(values, count > n? n : count);
|
||||
boost::serialization::array_wrapper<T> arr(values, count > n? n : count);
|
||||
ia >> arr;
|
||||
|
||||
if (count > n) {
|
||||
@@ -1459,7 +1459,7 @@ namespace detail {
|
||||
ia >> count;
|
||||
|
||||
// Deserialize the data in the message
|
||||
boost::serialization::array<T> arr(values, count > n? n : count);
|
||||
boost::serialization::array_wrapper<T> arr(values, count > n? n : count);
|
||||
ia >> arr;
|
||||
|
||||
if (count > n) {
|
||||
|
||||
@@ -66,7 +66,7 @@ public:
|
||||
|
||||
// fast saving of arrays of fundamental types
|
||||
template<class T>
|
||||
void load_array(serialization::array<T> const& x, unsigned int /* file_version */)
|
||||
void load_array(serialization::array_wrapper<T> const& x, unsigned int /* file_version */)
|
||||
{
|
||||
BOOST_MPL_ASSERT((serialization::is_bitwise_serializable<BOOST_DEDUCED_TYPENAME remove_const<T>::type>));
|
||||
if (x.count())
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
typedef serialization::is_bitwise_serializable<mpl::_1> use_array_optimization;
|
||||
|
||||
template<class T>
|
||||
void load(serialization::array<T> const& x)
|
||||
void load(serialization::array_wrapper<T> const& x)
|
||||
{
|
||||
load_array(x,0u);
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ public:
|
||||
|
||||
// fast saving of arrays
|
||||
template<class T>
|
||||
void save_array(serialization::array<T> const& x, unsigned int /* file_version */)
|
||||
void save_array(serialization::array_wrapper<T> const& x, unsigned int /* file_version */)
|
||||
{
|
||||
|
||||
BOOST_MPL_ASSERT((serialization::is_bitwise_serializable<BOOST_DEDUCED_TYPENAME remove_const<T>::type>));
|
||||
@@ -64,7 +64,7 @@ public:
|
||||
}
|
||||
|
||||
template<class T>
|
||||
void save(serialization::array<T> const& x)
|
||||
void save(serialization::array_wrapper<T> const& x)
|
||||
{
|
||||
save_array(x,0u);
|
||||
}
|
||||
|
||||
@@ -42,7 +42,7 @@ public:
|
||||
|
||||
/// loading of arrays is forwarded to the implementation archive
|
||||
template<class T>
|
||||
void load_array(serialization::array<T> & x, unsigned int file_version )
|
||||
void load_array(serialization::array_wrappe<T> & x, unsigned int file_version )
|
||||
{
|
||||
implementation_archive.load_array(x,file_version);
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ public:
|
||||
|
||||
/// saving of arrays is forwarded to the implementation archive
|
||||
template<class T>
|
||||
void save_array(serialization::array<T> const& x, unsigned int file_version )
|
||||
void save_array(serialization::array_wrapper<T> const& x, unsigned int file_version )
|
||||
{
|
||||
implementation_archive.save_array(x,file_version);
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ public:
|
||||
|
||||
/// don't do anything when loading arrays
|
||||
template<class T>
|
||||
void load_array(serialization::array<T> &, unsigned int )
|
||||
void load_array(serialization::array_wrapper<T> &, unsigned int )
|
||||
{}
|
||||
|
||||
typedef is_mpi_datatype<mpl::_1> use_array_optimization;
|
||||
|
||||
@@ -36,7 +36,7 @@ public:
|
||||
|
||||
/// don't do anything when saving arrays
|
||||
template<class T>
|
||||
void save_array(serialization::array<T> const&, unsigned int )
|
||||
void save_array(serialization::array_wrapper<T> const&, unsigned int )
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ public:
|
||||
|
||||
// fast saving of arrays of MPI types
|
||||
template<class T>
|
||||
void save_array(serialization::array<T> const& x, unsigned int /* version */)
|
||||
void save_array(serialization::array_wrapper<T> const& x, unsigned int /* version */)
|
||||
{
|
||||
if (x.count())
|
||||
save_impl(x.address(), boost::mpi::get_mpi_datatype(*x.address()), x.count());
|
||||
|
||||
@@ -64,7 +64,7 @@ public:
|
||||
|
||||
// fast saving of arrays of fundamental types
|
||||
template<class T>
|
||||
void load_array(serialization::array<T> const& x, unsigned int /* file_version */)
|
||||
void load_array(serialization::array_wrapper<T> const& x, unsigned int /* file_version */)
|
||||
{
|
||||
if (x.count())
|
||||
load_impl(x.address(), get_mpi_datatype(*x.address()), x.count());
|
||||
@@ -72,7 +72,7 @@ public:
|
||||
|
||||
/*
|
||||
template<class T>
|
||||
void load(serialization::array<T> const& x)
|
||||
void load(serialization::array_wrapper<T> const& x)
|
||||
{
|
||||
load_array(x,0u);
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ public:
|
||||
|
||||
// fast saving of arrays
|
||||
template<class T>
|
||||
void save_array(serialization::array<T> const& x, unsigned int /* file_version */)
|
||||
void save_array(serialization::array_wrapper<T> const& x, unsigned int /* file_version */)
|
||||
{
|
||||
if (x.count())
|
||||
save_impl(x.address(), get_mpi_datatype(*x.address()), x.count());
|
||||
|
||||
Reference in New Issue
Block a user