Skip to content

Commit

Permalink
fixing compilation warnings in release build
Browse files Browse the repository at this point in the history
  • Loading branch information
patflick committed Oct 6, 2016
1 parent f790dbe commit 8945b43
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions include/mxx/samplesort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ sample_arbit_decomp(_Iterator begin, _Iterator end, _Compare comp, size_t s, con
else
local_s = std::max<std::size_t>(((local_size*s*p)+total_size-1)/total_size, 1);

size_t n_splitters = mxx::allreduce(local_s, comm);
MXX_ASSERT(n_splitters >= p*s);
MXX_ASSERT(mxx::allreduce(local_s, comm) >= p*s);

// init samples
std::vector<value_type> local_splitters;
Expand Down

0 comments on commit 8945b43

Please sign in to comment.