Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

M1 compilation - illegal hardware instruction error #303

Open
RalfMackenbach opened this issue Apr 18, 2023 · 2 comments
Open

M1 compilation - illegal hardware instruction error #303

RalfMackenbach opened this issue Apr 18, 2023 · 2 comments

Comments

@RalfMackenbach
Copy link

RalfMackenbach commented Apr 18, 2023

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
Copy link
Author

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

@mbkumar
Copy link
Collaborator

mbkumar commented Apr 21, 2023

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants