Skip to content

Commit

Permalink
fix warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
patflick committed Nov 2, 2015
1 parent 0bdcae2 commit b7c25d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ Session.vim
.netrwhist
*~

release
5 changes: 4 additions & 1 deletion include/mxx/distribution.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@


#define MEASURE_LOAD_BALANCE 0
#if MEASURE_LOAD_BALANCE == 1
#include <cxx-prettyprint/prettyprint.hpp>
#endif

namespace mxx
{
Expand Down Expand Up @@ -410,7 +413,7 @@ void redo_arbit_decomposition(_InIterator begin, _InIterator end, _OutIterator o
}

// get prefix sum of size and total size
#if !defined(NDEBUG) || defined(MEASURE_LOAD_BALANCE)
#if !defined(NDEBUG) || MEASURE_LOAD_BALANCE != 0
size_t total_size = mxx::allreduce(local_size, comm);
#endif
size_t prefix = mxx::exscan(local_size, comm);
Expand Down

0 comments on commit b7c25d0

Please sign in to comment.