Commit 51c93b5e authored by Médéric Boquien's avatar Médéric Boquien

Disable threading for OpenMP too.

parent 23c937d0
......@@ -27,6 +27,15 @@ def nothreading():
None
"""
for basename in ['iomp', 'gomp', 'omp', 'vcomp']:
try: # Disable threading for OpenMP
name = find_library(basename)
if name:
lib = ctypes.cdll.LoadLibrary(name)
lib.omp_set_num_threads(ctypes.c_int(1))
except:
continue
try: # Disable threading for MKL
name = find_library('mkl_rt')
if name:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment