用MPI和python编译boost

Compiling boost with MPI and python

本文关键字:编译 boost python MPI      更新时间:2023-10-16

我在启用MPI和python库的情况下编译boost时遇到了一些麻烦。下面是错误:

libs/mpi/src/python/py_nonblocking.cpp: In function 'bool {anonymous}::wrap_test_all({anonymous}::request_list&, boost::python::api::object)':
libs/mpi/src/python/py_nonblocking.cpp:167:63: error: cannot convert 'boost::optional<{anonymous}::py_call_output_iterator<boost::mpi::status, __gnu_cxx::__normal_iterator<boost::mpi::python::request_with_value*, std::vector<boost::mpi::python::request_with_value> > > >' to 'bool' in return
       status_value_iterator(py_callable, requests.begin()));

我使用gcc版本4.9.2(自制gcc49 4.9.2)。有人知道哪里出了问题吗?

我自己找到了答案;好像有个bug。

https://svn.boost.org/trac/boost/ticket/10282