如何使用boost库创建分布式属性映射?

时间:2014-04-25 13:58:45

标签: c++ boost graph parallel-processing

我正在使用this library并尝试:

typedef vector_property_map<std::size_t> LocalMap;
typedef graph_traits<Graph>::vertex_descriptor Key;
boost::parallel::distributed_property_map< mpi_process_group,LocalMap,Key> dist_map;

但失败了:

mpic++ large_graph.cpp -o large_graph -L/usr/lib/ -lboost_mpi -lboost_serialization -lboost_graph_parallel -lboost_system -I/usr/include/

/usr/include/boost/property_map/parallel/distributed_property_map.hpp:225:60: error: no type named ‘value_type’ in ‘struct boost::property_traits<boost::detail::parallel::global_descriptor<long unsigned int> >’
   typedef typename property_traits<StorageMap>::value_type value_type;
                                                            ^

有什么想法吗?

1 个答案:

答案 0 :(得分:0)