diff options
author | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-12-05 01:42:19 +0000 |
---|---|---|
committer | redpony <redpony@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-12-05 01:42:19 +0000 |
commit | 670356efa26cd3bba3bf7047701e9fad1aeed0cb (patch) | |
tree | b8d5e3d1364933dca3301a9579ef7531dfd14c1b /training/mpi_online_optimize.cc | |
parent | d52db01a2e224869c6ea72a4a234e888c6fd756c (diff) |
small changes
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@740 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'training/mpi_online_optimize.cc')
-rw-r--r-- | training/mpi_online_optimize.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/training/mpi_online_optimize.cc b/training/mpi_online_optimize.cc index 0f994c59..325ba030 100644 --- a/training/mpi_online_optimize.cc +++ b/training/mpi_online_optimize.cc @@ -8,10 +8,6 @@ #include <boost/program_options.hpp> #include <boost/program_options/variables_map.hpp> -#ifdef HAVE_MPI -#include <boost/mpi/timer.hpp> -#include <boost/mpi.hpp> -#endif #include "verbose.h" #include "hg.h" @@ -26,6 +22,11 @@ #include "sparse_vector.h" #include "sampler.h" +#ifdef HAVE_MPI +#include <boost/mpi/timer.hpp> +#include <boost/mpi.hpp> +namespace mpi = boost::mpi; +#endif using namespace std; namespace po = boost::program_options; @@ -197,8 +198,6 @@ struct TrainingObserver : public DecoderObserver { }; #ifdef HAVE_MPI -namespace mpi = boost::mpi; - namespace boost { namespace mpi { template<> struct is_commutative<std::plus<SparseVector<double> >, SparseVector<double> > |