omp_set_nthreads

  • full name: tenpy.tools.process.omp_set_nthreads

  • parent module: tenpy.tools.process

  • type: function

tenpy.tools.process.omp_set_nthreads(n)[source]

wrapper around OpenMP set_nthreads.

Parameters:

n (int) – the number of threads to use

Returns:

success – whether the shared library was found and set.

Return type:

bool