[graph-tool] Correlation Histogram

Tiago de Paula Peixoto tiago at skewed.de
Thu Feb 9 20:20:14 CET 2017


On 09.02.2017 16:37, Alexandre Hannud Abdo wrote:
> You can also modify the environment from within Python, using the
> "os.environ" dictionary. You'll just have to set the value for
> 'OMP_NUM_THREADS' before importing graph-tool, because openmp will consider
> the value at the time of importing.

graph-tool also provides some convenience functions for doing this from
inside python, independently of the environment variables:

	graph_tool.openmp_get_num_threads()
        graph_tool.openmp_set_num_threads()

        graph_tool.openmp_get_schedule()
        graph_tool.openmp_set_schedule()

-- 
Tiago de Paula Peixoto <tiago at skewed.de>



More information about the graph-tool mailing list