Has anyone had success running the legacy FEniCS 2019.1.0 on Apple Silicon? This discussion seems to be about FEniCSx, but I still use the legacy FEniCS for a project that has not been (and would be quite hard to) update to FEniCSx.
If anyone knows that FEniCS 2019 cannot run on Apple Silicon or has other advice, that would be welcome.
Very glad to hear that it’s been done successfully. I don’t have an Apple Silicon machine on which to test yet, but as my current ones age out, I am going to make the transition. If I couldn’t run legacy dolfin, that would perhaps change my purchase plans.
I just bought a Mac Studio with M1 Max. I searched for fenics using conda but did not find any fenics from conda-forge. It is good to know that fenics 2019 works on M1 and can get a docker image from the web link. However, is it possible for an author of the web link to produce a version of fenics for conda-forge? Doing so will be highly appreciated by many fenics users like me.
Yes. I did exactly. But, Paulms’ way may cause new problems. For example, I got an error of an incompatible architecture (have ‘arm64’, need 'x86_64’) when using f2py since gfortran was run on Apple Silicon (Paulms, can you have a way to fix this issue? This issue is common since f2py is often used). Hence, it is still important for someone to generate a binary of fenics 2019 for Apple Silicon.
Confirming, Paulms solutions is functional for me. I was suffering from “catastrophic performance degradation” using the usual fenics2019 docker container. I couldn’t quite piece together how to build my own for that, but thankfully your conda solution works great. I really appreciate it.
I would love to just migrate to fenicsx, since it seems to have better apple silicon support, but I’m bound to hippylib which depends on the 2019 version. I need to put in some time to try and implement the features I need from it in dolfinx.