Hi
I asked earlier as to how utilize the parallel processing in my code. Now I
installed it using the precompiled packages for Ubuntu. does that mean I'll
have to reinstall it from source using the openmp option in the configure
command?
Shubham
I asked earlier as to how utilize the parallel processing in my
code. Now I installed it using the precompiled packages for
Ubuntu. does that mean I'll have to reinstall it from source using the
openmp option in the configure command? Shubham
No, the ubuntu packages were already compiled with openmp enabled. You can
always verify if openmp was enabled or not by calling the show_config()
function. You should get something like this on Ubuntu:
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? I would like to run
without openmp just to compare times. It's possible?
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.