tenpy.tools.process.omp_get_nthreads()[source]
wrapper around OpenMP get_max_threads.
max_threads – The maximum number of threads used by OpenMP (and thus MKL). -1 if unable to read out.