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 <[email protected]>
_______________________________________________
graph-tool mailing list
[email protected]
https://lists.skewed.de/mailman/listinfo/graph-tool

Reply via email to