simsopt icon indicating copy to clipboard operation
simsopt copied to clipboard

M1 compilation - illegal hardware instruction error

Open RalfMackenbach opened this issue 2 years ago • 2 comments

I followed the Conda toolchain only installation instructions for M1, but ran into new errors. Installation does not produce errors, but when running import simsopt it produces:

[1] 8090 illegal hardware instruction python

This seems to be simsopt related only: I can import vmec without problems. I've tried different methods of installing simsopt as well (i.e. via the conda forge channel, via pip install -e ., etc.. These typically give jax errors). The python version is Python 3.8.16. Due to the error message not giving much information I'm unable to track it down further.

One other thing: to install I needed to run pip install setuptools_scm"[toml]" due to working in zsh. It may be convenient to add this to the instructions.

RalfMackenbach avatar Apr 18 '23 13:04 RalfMackenbach

Found a temporary workaround for the time being, until this is resolved. An older version of simsopt seems to work fine. The following provides me with a working (though outdated) installation:

conda create -n simsopt -y 
conda activate simsopt
conda install -c hiddensymmetries simsopt=0.11.1 -y
conda install netcdf-fortran openmpi-mpicc openmpi-mpifort openblas scalapack mpi4py scikit-build numpy f90wrap -y

From there on I install VMEC2000 as recommended:

python setup.py build_ext
python setup.py install

RalfMackenbach avatar Apr 18 '23 19:04 RalfMackenbach

Did you use the build isolation when installing simsopt?

Can you please post the output of conda list command after activating the troublesome environment?

Can you please try after updating conda base environment?

mbkumar avatar Apr 21 '23 15:04 mbkumar