🦔

Building MPI.jl with OpenMPI 4.1.2 on Monterey (M1)

2022/01/03に公開
  • Julia 1.7.1 (ARM64)
  • open-mpi 4.1.2 (ARM64)
ENV["JULIA_MPI_BINARY"] = "system"
ENV["JULIA_MPI_PATH"] = "/opt/homebrew/Cellar/open-mpi/4.1.2"
ENV["JULIA_MPI_LIBRARY"] = "/opt/homebrew/lib/libmpi.dylib"
ENV["JULIA_MPI_ABI"] = "OpenMPI"
ENV["JULIA_MPIEXEC"] = "/opt/homebrew/bin/mpirun"
using Pkg
Pkg.build("MPI"; verbose=true)
    Building MPI → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/d56a80d8cf8b9dc3050116346b3d83432b1912c0/build.log`
[ Info: using system MPI                             ]  0/1
┌ Info: Using implementation
│   libmpi = "/opt/homebrew/lib/libmpi.dylib"
│   mpiexec_cmd = `/opt/homebrew/bin/mpirun`
└   MPI_LIBRARY_VERSION_STRING = "Open MPI v4.1.2, package: Open MPI brew@HMBRW-A-001-M1-004.local Distribution, ident: 4.1.2, repo rev: v4.1.2, Nov 24, 2021\0"
┌ Info: MPI implementation config
└   abi = "OpenMPI"

Discussion