Merge pull request #14566 from edx/nedbat/prevent-openblas-threads

Prevent OpenBLAS from spawning worker threads. TNL-6456
This commit is contained in:
Ned Batchelder
2017-02-23 09:53:02 -05:00
committed by GitHub

View File

@@ -14,6 +14,9 @@ import hashlib
CODE_PROLOG = """\
from __future__ import division
import os
os.environ["OPENBLAS_NUM_THREADS"] = "1" # See TNL-6456
import random as random_module
import sys
random = random_module.Random(%r)