diff options
Diffstat (limited to 'libs/mpi/src/python/module.cpp')
-rw-r--r-- | libs/mpi/src/python/module.cpp | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/libs/mpi/src/python/module.cpp b/libs/mpi/src/python/module.cpp new file mode 100644 index 000000000..5e27e88ca --- /dev/null +++ b/libs/mpi/src/python/module.cpp @@ -0,0 +1,55 @@ +// (C) Copyright 2006 Douglas Gregor <doug.gregor -at- gmail.com> + +// Use, modification and distribution is subject to the Boost Software +// License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at +// http://www.boost.org/LICENSE_1_0.txt) + +// Authors: Douglas Gregor + +/** @file module.cpp + * + * This file provides the top-level module for the Boost.MPI Python + * bindings. + */ +#include <boost/python.hpp> +#include <boost/mpi.hpp> + +using namespace boost::python; +using namespace boost::mpi; + +namespace boost { namespace mpi { namespace python { + +extern void export_environment(); +extern void export_exception(); +extern void export_collectives(); +extern void export_communicator(); +extern void export_datatypes(); +extern void export_request(); +extern void export_status(); +extern void export_timer(); +extern void export_nonblocking(); + +extern const char* module_docstring; + +BOOST_PYTHON_MODULE(mpi) +{ + // Setup module documentation + scope().attr("__doc__") = module_docstring; + scope().attr("__author__") = "Douglas Gregor <doug.gregor@gmail.com>"; + scope().attr("__date__") = "$LastChangedDate: 2008-06-26 12:25:44 -0700 (Thu, 26 Jun 2008) $"; + scope().attr("__version__") = "$Revision: 46743 $"; + scope().attr("__copyright__") = "Copyright (C) 2006 Douglas Gregor"; + scope().attr("__license__") = "http://www.boost.org/LICENSE_1_0.txt"; + + export_environment(); + export_exception(); + export_communicator(); + export_collectives(); + export_datatypes(); + export_request(); + export_status(); + export_timer(); + export_nonblocking(); +} + +} } } // end namespace boost::mpi::python |