Note that the above segfault was found in a VM (docker-machine
virtualbox guest VM launched on a OSX host). The DYNAMIC_ARCH feature
of OpenBLAS detects an Sandybridge core (using
https://gist.github.com/ogrisel/ad4e547a32d0eb18b4ff).

Here are the flags of the CPU visible from inside the docker container:

cat /proc/cpuinfo  | grep flags
flags        : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx rdtscp lm
constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq monitor
ssse3 cx16 sse4_1 sse4_2 popcnt aes xsave avx rdrand hypervisor
lahf_lm

If I fix the Nehalem kernel by setting the environment variable the
problem disappears:

OPENBLAS_CORETYPE=Nehalem python3 -c "import numpy as np; from scipy
import linalg; linalg.eigh(np.random.randn(200, 200))"

So this is an issue with the architecture detection of OpenBLAS.

-- 
Olivier
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
https://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to