Mentions légales du service

Skip to content
Snippets Groups Projects
Commit b525332f authored by hhakim's avatar hhakim
Browse files

Add an env var to disable libomp loading in pyfaust.

parent cafe77c5
No related branches found
No related tags found
No related merge requests found
from sys import platform as _pf
from os.path import basename
from os import environ
libomp_loading_verbose = False
internal_libomp_loading = True
......@@ -75,7 +76,7 @@ def try_modify_wrapper_lib_on_macos():
# load libomp pyfaust embedded library if found in pyfaust location
if _pf in ['darwin', 'linux', 'win32']:
try_modify_wrapper_lib_on_macos()
if internal_libomp_loading:
if internal_libomp_loading and not 'DISABLE_PYFAUST_LIBOMP' in environ:
load_lib_omp()
else:
inform_user_how_to_install_libomp()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment