On 10.11.2015 21:40, vitor wrote: > Hi, I already installed graph_tool from precompiled packages for ubuntu and > I'm running dfs_search into a random graph generated earlier. This indicates > that I'm running dfs_search with openmp enabled already?
Yes. > I would like to run without openmp just to compare times. It's > possible? You can set the number of threads at run-time to 1, by calling graph_tool.openmp_set_num_threads(1). This effectively turns off openmp. But note that not all algorithms are parallelizable. DFS search, for instance, cannot be written in parallel, since the vertices must be followed in a specific order. Best, Tiago -- Tiago de Paula Peixoto <[email protected]> _______________________________________________ graph-tool mailing list [email protected] http://lists.skewed.de/mailman/listinfo/graph-tool
