Opened 8 years ago

Last modified 8 years ago

#10577 new Bugs

‘num_synchronizations’ declared in scope

Reported by: M. Harper Langston <harperlangston@…> Owned by: Jeremiah Willcock
Milestone: To Be Determined Component: graph
Version: Boost 1.54.0 Severity: Problem
Keywords: Cc:

Description

In 1_54_0/boost/graph/distributed/detail/queue.ipp there is the following:

template<BOOST_DISTRIBUTED_QUEUE_PARMS> bool BOOST_DISTRIBUTED_QUEUE_TYPE::do_synchronize() const { #ifdef PBGL_ACCOUNTING

++num_synchronizations;

#endif

....

}

While editing a PBGL example to use Eager Dijkstra over Delta-Stepping, the following error was produced during compilation:

In file included from /boost_1_54_0/boost/graph/distributed/queue.hpp:273:0,

from /boost_1_54_0/boost/graph/distributed/breadth_first_search.hpp:20, from /boost_1_54_0/boost/graph/breadth_first_search.hpp:404, from /boost_1_54_0/boost/graph/dijkstra_shortest_paths.hpp:21, from /parallel-bgl-0.7.0/libs/graph_parallel/test/distributed_shortest_paths_test.cpp:15:

/boost_1_54_0/boost/graph/distributed/detail/queue.ipp: In member function ‘virtual bool boost::graph::distributed::distributed_queue<ProcessGroup, OwnerMap, Buffer, UnaryPredicate>::do_synchronize() const’: /boost_1_54_0/boost/graph/distributed/detail/queue.ipp:143:5: error: ‘num_synchronizations’ was not declared in this scope

++num_synchronizations;

I couldn't locate num_synchronizations anywhere. I could undefine PBGL_ACCOUNTING or just comment out the num_sync increment field.

I don't see this as having been fixed/removed in any other boost versions (checked 1_56_0). Not a serious problem clearly unless accurate accounting is wanted.

Change History (1)

comment:1 by viboes, 8 years ago

Component: Nonegraph
Owner: set to Jeremiah Willcock
Note: See TracTickets for help on using tickets.