summaryrefslogtreecommitdiff
path: root/training
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
commite5d07b5b4e79a10d901d7c71e3e869803e145e42 (patch)
treef5296c913c254ad52482b626060226ed90796ce2 /training
parentf423af0b44a1f977e5e8898363c1d4a2e8cd15e5 (diff)
better logging with MPI
Diffstat (limited to 'training')
-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;