Skip to content

Commit

Permalink
Fixing zero copy serialization test
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Heller committed Sep 15, 2016
1 parent fd8b33a commit 256477f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
6 changes: 4 additions & 2 deletions hpx/runtime/applier/apply_helper.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ namespace hpx { namespace applier { namespace detail

template <typename ...Ts>
static void
call (threads::thread_init_data&& data, std::unique_ptr<actions::continuation> cont,
call (threads::thread_init_data&& data,
std::unique_ptr<actions::continuation> cont,
naming::id_type const& target, naming::address::address_type lva,
threads::thread_priority priority, Ts&&... vs)
{
Expand Down Expand Up @@ -160,7 +161,8 @@ namespace hpx { namespace applier { namespace detail

template <typename ...Ts>
HPX_FORCEINLINE static void
call (threads::thread_init_data&& data, std::unique_ptr<actions::continuation> cont,
call (threads::thread_init_data&& data,
std::unique_ptr<actions::continuation> cont,
naming::id_type const& target, naming::address::address_type lva,
threads::thread_priority priority, Ts &&... vs)
{
Expand Down
7 changes: 3 additions & 4 deletions tests/unit/serialization/zero_copy_serialization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ void test_parcel_serialization(hpx::parcelset::parcel outp,
std::size_t arg_size = get_archive_size(outp, out_archive_flags,
zero_copy ? &out_chunks : nullptr);
std::vector<char> out_buffer;
std::uint32_t dest_locality_id = outp.destination_locality_id();

out_buffer.resize(arg_size + HPX_PARCEL_SERIALIZATION_OVERHEAD);

Expand Down Expand Up @@ -173,7 +172,7 @@ void test_normal_serialization(T& arg)
reinterpret_cast<std::uint64_t>(&test_function1));

// compose archive flags
unsigned out_archive_flags = 0U;
unsigned out_archive_flags = hpx::serialization::disable_data_chunking;
#ifdef BOOST_BIG_ENDIAN
out_archive_flags |= hpx::serialization::endian_big;
#else
Expand Down Expand Up @@ -204,7 +203,7 @@ void test_normal_serialization(T1& arg1, T2& arg2)
reinterpret_cast<std::uint64_t>(&test_function2));

// compose archive flags
unsigned out_archive_flags = 0U;
unsigned out_archive_flags = hpx::serialization::disable_data_chunking;
#ifdef BOOST_BIG_ENDIAN
out_archive_flags |= hpx::serialization::endian_big;
#else
Expand Down Expand Up @@ -236,7 +235,7 @@ void test_normal_serialization(double d, T1& arg1, std::string const& s,
reinterpret_cast<std::uint64_t>(&test_function2));

// compose archive flags
unsigned out_archive_flags = 0U;
unsigned out_archive_flags = hpx::serialization::disable_data_chunking;
#ifdef BOOST_BIG_ENDIAN
out_archive_flags |= hpx::serialization::endian_big;
#else
Expand Down

0 comments on commit 256477f

Please sign in to comment.