load_omp_library

  • 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, '/scratch/anaconda3/envs/tenpybot/lib/libgomp.so.1'], verbose=True)[source]

Tries to load openMP library.

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

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

Returns

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

Return type

CDLL | None