We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3970d5 commit 4a57020Copy full SHA for 4a57020
scripts/nlsam_denoising
@@ -3,10 +3,15 @@
3
from __future__ import division, print_function
4
5
import os
6
+
7
# Fix openblas threading bug with openmp before loading numpy
8
# Spams has openmp support already, and openblas conflicts with python multiprocessing.
9
os.environ['OPENBLAS_NUM_THREADS'] = '1'
10
11
+# Mac OSX has it's own blas/lapack, but like openblas it causes conflict for
12
+# python 2.7 and before python 3.4 in multiprocessing, so disable it.
13
+os.environ['VECLIB_MAXIMUM_THREADS'] = '1'
14
15
import argparse
16
import logging
17
from multiprocessing import cpu_count, freeze_support
0 commit comments