ALPSCore reference
mpi.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1998-2018 ALPS Collaboration. See COPYRIGHT.TXT
3  * All rights reserved. Use is subject to license terms. See LICENSE.TXT
4  * For use in publications, see ACKNOWLEDGE.TXT
5  */
6 
7 #pragma once
8 
9 #include <alps/config.hpp>
10 
11 #ifdef ALPS_HAVE_MPI
12 
14 
15  namespace alps {
16  namespace alps_mpi {
17 
18  template<typename T, typename Op> void reduce(const alps::mpi::communicator & comm, T const & in_values, Op op, int root);
19  template<typename T, typename Op> void reduce(const alps::mpi::communicator & comm, T const & in_values, T & out_values, Op op, int root);
20 
21  } // alps_mpi::
22  } // alps::
23 
24 #endif
Encapsulation of an MPI communicator and some communicator-related operations.
Definition: mpi.hpp:111