Open LukasDrude opened 6 years ago
I found that
import numpy as np
np.fft.restore_all()
is a workaround until anaconda disables mkl_fft.
Why is mkl_fft not disable by default in anaconda? In https://github.com/IntelPython/mkl_fft/issues/24 is denoted that the bug is still there.
When using
numpy.fft.rfft
withmkl_fft
in aThreadPoolExecutor
you can run in a segmentation fault.Why is this a cross-post? Since this issue is related to Anaconda, Numpy and mkl_fft, this issue is posted on all three locations. Currently, it is not quite clear which party should address the issue.
We get the same error when testing this on different infrastructure/ OS:
Repeating the example code many times yields some kind of traceback, if it did not segfault.
Sometimes occuring traceback
``` Traceback (most recent call last): File "test_script.py", line 35, inNot working environment:
Conda installed numpy version: Version: 1.14.3
Numpy config
``` python -c "import numpy; print(numpy.show_config())" mkl_info: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/Users/lukas/anaconda3/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/Users/lukas/anaconda3/include'] blas_mkl_info: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/Users/lukas/anaconda3/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/Users/lukas/anaconda3/include'] blas_opt_info: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/Users/lukas/anaconda3/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/Users/lukas/anaconda3/include'] lapack_mkl_info: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/Users/lukas/anaconda3/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/Users/lukas/anaconda3/include'] lapack_opt_info: libraries = ['mkl_rt', 'pthread'] library_dirs = ['/Users/lukas/anaconda3/lib'] define_macros = [('SCIPY_MKL_H', None), ('HAVE_CBLAS', None)] include_dirs = ['/Users/lukas/anaconda3/include'] None ```Working Environment:
Pip installed numpy version: 1.14.5
Numpy config
``` python -c "import numpy; print(numpy.show_config())" blas_mkl_info: NOT AVAILABLE blis_info: NOT AVAILABLE openblas_info: NOT AVAILABLE atlas_3_10_blas_threads_info: NOT AVAILABLE atlas_3_10_blas_info: NOT AVAILABLE atlas_blas_threads_info: NOT AVAILABLE atlas_blas_info: NOT AVAILABLE blas_opt_info: extra_compile_args = ['-msse3', '-I/System/Library/Frameworks/vecLib.framework/Headers'] extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)] lapack_mkl_info: NOT AVAILABLE openblas_lapack_info: NOT AVAILABLE openblas_clapack_info: NOT AVAILABLE atlas_3_10_threads_info: NOT AVAILABLE atlas_3_10_info: NOT AVAILABLE atlas_threads_info: NOT AVAILABLE atlas_info: NOT AVAILABLE lapack_opt_info: extra_compile_args = ['-msse3'] extra_link_args = ['-Wl,-framework', '-Wl,Accelerate'] define_macros = [('NO_ATLAS_INFO', 3), ('HAVE_CBLAS', None)] None ```