0

I want to disable OpenMP in graph-tool, but I can't find anything about OpenMP in graph-tool's official documentation.

Is there any way to turn it off?

Douglas Su
  • 3,214
  • 7
  • 29
  • 58

1 Answers1

2

There are several ways. During compilation you can pass the option --disable-openmp to the configure script.

If you just want to disable openmp during runtime you can either:

  1. Set the environment variable OMP_NUM_THREADS=1
  2. Call the graph-tool function openmp_set_num_threads(1)
Tiago Peixoto
  • 5,149
  • 2
  • 28
  • 28