• full name: tenpy.tools.process.load_omp_library

  • parent module: tenpy.tools.process

  • type: function

tenpy.tools.process.load_omp_library(libs=['libiomp5.so', None, 'libgomp.so.1'], verbose=True)[source]

Tries to load openMP library.

  • libs – list of possible library names we should try to load (with ctypes.CDLL).

  • verbose (bool) – whether to print the name of the loaded library.


omp – OpenMP shared library if found, otherwise None. Once it was successfully imported, no re-imports are tried.

Return type:

CDLL | None