• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // (C) Copyright 2006 Douglas Gregor <doug.gregor -at- gmail.com>
2 
3 // Use, modification and distribution is subject to the Boost Software
4 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
5 // http://www.boost.org/LICENSE_1_0.txt)
6 
7 //  Authors: Douglas Gregor
8 
9 /** @file module.cpp
10  *
11  *  This file provides the top-level module for the Boost.MPI Python
12  *  bindings.
13  */
14 #include <boost/python.hpp>
15 #include <boost/mpi.hpp>
16 
17 using namespace boost::python;
18 using namespace boost::mpi;
19 
20 namespace boost { namespace mpi { namespace python {
21 
22 extern void export_environment();
23 extern void export_exception();
24 extern void export_collectives();
25 extern void export_communicator();
26 extern void export_datatypes();
27 extern void export_request();
28 extern void export_status();
29 extern void export_timer();
30 extern void export_nonblocking();
31 
32 extern const char* module_docstring;
33 
BOOST_PYTHON_MODULE(mpi)34 BOOST_PYTHON_MODULE(mpi)
35 {
36   // Setup module documentation
37   scope().attr("__doc__") = module_docstring;
38   scope().attr("__author__") = "Douglas Gregor <doug.gregor@gmail.com>";
39   scope().attr("__date__") = "$LastChangedDate$";
40   scope().attr("__version__") = "$Revision$";
41   scope().attr("__copyright__") = "Copyright (C) 2006 Douglas Gregor";
42   scope().attr("__license__") = "http://www.boost.org/LICENSE_1_0.txt";
43 
44   export_environment();
45   export_exception();
46   export_communicator();
47   export_collectives();
48   export_datatypes();
49   export_request();
50   export_status();
51   export_timer();
52   export_nonblocking();
53 }
54 
55 } } } // end namespace boost::mpi::python
56