Closed alkamid closed 6 years ago
This is likely caused by MKL. When I run conda create -n mp -c chogan -c conda-forge pymeep
, I get an environment without any MKL packages (i.e., numpy built with openblas, etc.). My guess is that after this step, you ran something that installed MKL into the environment. You can try installing the no-mkl
package, which should remove all the MKL packages from your environment and replace them with OpenBLAS versions. Or you can get all your required packages from conda-forge
instead of the default channel.
Maybe it's worth adding a note about it in the Installation docs? Shuffling imports is not really a problem, but this might be confusing for new users.
Minimal example:
When running this code (I have a fresh meep conda environment from
conda create -n mp -c chogan -c conda-forge pymeep
), I'm getting a segmentation fault:With
numpy
import line commented out, the code runs fine. It's also fine if I move the import afterimport meet as mp
. I saw exactly the same behaviour withmatplotlib
instead ofnumpy
, so I suppose it might be anything internally importingnumpy
.Also, surprisingly (?), if I reduce the list of k-vectors to just the Gamma point:
The script exits without an error. But then if I specify
num_bands>1
:Segfault is back again... FWIW, below is the output of
conda list
: