我正在尝试在我的 macbook 上使用 mpi 编译我的代码,但出现以下错误:“ld: library not found for -lblacsF77init”。我不明白在哪里可以找到这个库以及如何创建正确的路径。
这是makefile:#串行Fortran编译程序
F90 = gfortran -I/usr/local/include
# parallel Fortran compiler program
MPIF90 = /usr/local/bin/mpif90.
# Compiler flags
F90FLAGS =
CFLAGS = -x f95-cpp-input.
# LDFLAGS are the linker flags
LDFLAGS = -L/usr/local/lib
F77LIBS =.
MATLIB = -framework Accelerate
hsl = /usr/local/opt/scalapack/
hb = /usr/local/opt/openblas/
hompi = /usr/local/lib/openmpi/
MPIMATLIB = -L$(hb) -L$(hsl) -lscalapack -L$(hsl) -lblacsF77init -
lblacs -lblacsF77init -L$(hompi) -Wl,-framework,vecLib
非常感谢您提供的任何帮助。