omp_get_nthreads

  • full name: tenpy.tools.process.omp_get_nthreads

  • parent module: tenpy.tools.process

  • type: function

tenpy.tools.process.omp_get_nthreads()[source]

wrapper around OpenMP get_max_threads.

Returns:

max_threads – The maximum number of threads used by OpenMP (and thus MKL). -1 if unable to read out.

Return type:

int