I am using python graph-tool for this algorithm in order to find min-cut in a large graph. My algorithm needs several calls to this function, and it seems to be the bottleneck. So I want to ensure if it is being run as efficiently as it could be i.e. using OpenMP.
However, on changing number of threads using openmp_set_num_threads(n), I get the same time for different number of threads viz. 2, 24 and 128.
Is there a way to check if OpenMP is being used by the graph-tool? I have checked the number of threads using openmp_get_num_threads and it is correct. Also how to enable OpenMP in case it is not being used by the graph-tool?
Alternatively, is there a way to check if some particular function of graph-tool, boykov_kolmogorov_max_flow in our case, uses OpenMP?
OpenMP. At least this is what they claim they do.Trueandcorrect number of threadsrespectively. The problem is that the function call toboykov_kolmogorov_max_flowtakes the same time for differentnum_threads.