Is it available for Mac M1? #205
-
Hi to everyone. Excuse me for my probably trivial question, but I would like to know if someone has compiled Phoebe on a Mac with the M1 processor. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
Hi @TheoBardu, Yes, I've built Phoebe previously on my M1 Mac, so it should be possible. If I remember correctly, at the time I had some issues using OMP, though the situation may have improved, as I think the problem was mostly related to a conflict with the Eigen library. Have you attempted the build using the usual steps, and found that it failed? If so, can you show me the error? There's a good chance I can guess how to resolve it. Just as an additional note, if you want to run phonon-only calculations, (the lattice thermal conductivity using phonon-phonon scattering), an M1 Macbook may be powerful enough for this, though for production calculations you might have to wait a while. In general transport calculations, especially electron-phonon calculations, can be compute + memory intensive, so it's best to try to use a compute cluster or at least a good workstation. Regardless, happy to help you get the code working, |
Beta Was this translation helpful? Give feedback.
Hi Theo,
That sounds like a good plan, let me see if I can help you get set up.
Your first error about kokkos-kernels is easy to fix, you probably missed the "recurse-submodules" part of the git clone line that's on the installation page. You can fix that by just running:
git submodule update --init
Now, for the main problem -- this was actually somewhat tricky, some recent changes to the Mac environment made this build harder than I suspected. Thanks for bringing it to my attention, I wish Macs were as code-friendly as they used to be.
I eventually got the build bellow working on my laptop -- would you mind checking that this works for you also?