并行编译时出现找不到MPICH的问题,在bashrc中添加

export MPICC=/usr/bin/mpicc (your path/to/mpicc may be different)
export MPICXX=/usr/bin/mpicxx
export CC=$MPICC
export CXX=$MPICXX

运行

./meson.py build -Dcustom-mpi=true 
./ninja -C build install

0 评论