summaryrefslogtreecommitdiff
path: root/training/mpi_flex_optimize.cc
diff options
context:
space:
mode:
authorChris Dyer <prguest11@taipan.cs>2012-03-07 18:54:11 +0000
committerChris Dyer <prguest11@taipan.cs>2012-03-07 18:54:11 +0000
commit63ea78b71bf913be248b064219734cac5ce41be2 (patch)
tree78b4cd282b10906d79d957a5c89d9049e1caf23c /training/mpi_flex_optimize.cc
parent4f19cd0c9a729cfd59d186492b3035c168f5e58f (diff)
better logging with MPI
Diffstat (limited to 'training/mpi_flex_optimize.cc')
-rw-r--r--training/mpi_flex_optimize.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/training/mpi_flex_optimize.cc b/training/mpi_flex_optimize.cc
index 00746532..d98ea4dc 100644
--- a/training/mpi_flex_optimize.cc
+++ b/training/mpi_flex_optimize.cc
@@ -205,7 +205,7 @@ int main(int argc, char** argv) {
const int size = 1;
const int rank = 0;
#endif
- if (size > 0) SetSilent(true); // turn off verbose decoder output
+ if (size > 1) SetSilent(true); // turn off verbose decoder output
register_feature_functions();
MT19937* rng = NULL;
@@ -343,7 +343,7 @@ int main(int argc, char** argv) {
double obj = 0;
#ifdef HAVE_MPI
- // TODO obj
+ reduce(world, local_obj, obj, std::plus<double>(), 0);
reduce(world, local_grad, g, std::plus<SparseVector<double> >(), 0);
#else
obj = local_obj;