简体   繁体   中英

How to create distributed property map with boost library?

I am using this library and I try:

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;

But fail:

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;
                                                            ^

Any idea?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM