flatironinstitute / FMM3D

Flatiron Institute Fast Multipole Libraries --- This codebase is a set of libraries to compute N-body interactions governed by the Laplace and Helmholtz equations, to a specified precision, in three dimensions, on a multi-core shared-memory machine.
https://fmm3d.readthedocs.io
Other
91 stars 36 forks source link

Updating Julia binaries #26

Closed mipals closed 2 years ago

mipals commented 2 years ago

Hello,

Is there any plan to update the Julia binaries to run on the M1 chip?

Cheers, Mikkel

mipals commented 2 years ago

I just found the build script:

https://github.com/JuliaPackaging/Yggdrasil/blob/master/F/FMM3D/build_tarballs.jl

Seems like it explicitly removes the M1 chips from support 😢 I guess there is some compile problems with FMM3D itself on M1 then?

mrachh commented 2 years ago

Dear Mikkel, The issue was the absence of a stable Fortran compiler when the M1 chips first came out. Since it is available now, we will try and get the binaries built on M1, update the scripts and keep you posted.

Regards, Manas

mipals commented 2 years ago

Dear Manas,

That makes sense 💻 - Yes, please keep my posted 👍

Cheers, Mikkel

mipals commented 2 years ago

Hi again,

Is there any update on this?

Cheers, Mikkel

mipals commented 2 years ago

Looks like things are up and running thanks a lot @askhamwhat 😄 (although I could only get it to work on Julia 1.8-RC1)

By the way, the installation can be done more easily than described in the README.md

using Pkg
Pkg.add(url="https://github.com/flatironinstitute/FMM3D.git", subdir="julia")
askhamwhat commented 2 years ago

@mipals Glad to hear it and thanks for the notes. I'm not sure why it would need a later version of Julia but I'll add a note to the README. And great, that is a cleaner method for installation. Cheers

mipals commented 2 years ago

The error that I got was that libquadmath.0.dylib could not be found. This error was fixed and backported 1.7.3, but I was trying on 1.7.2 earlier. Everything works nicely on 1.7.3 😄