问题
在参照两小时入门MPI与并行计算(二):MPI的安装与配置 - 知乎安装MPICH时,进行
./configure --prefix=/usr/local/mpich-3.3.2
时遇到问题:
configure: error: The Fortran compiler gfortran will not compile files that call the same routine with arguments of different types.
解决
在当前shell中键入:
export PATH="~/work/x/bin:$PATH"
export FFLAGS="-w -fallow-argument-mismatch -O2"
参考:
Alessio 2020-05-13 12:57:19 UTC
Steve workaround also worked for me (Fedora 32 + MPICH). I just had to replace setenv with export as follows: export PATH="~/work/x/bin:$PATH" export FFLAGS="-w -fallow-argument-mismatch -O2" Hope this helps.