这是测试MPI的简单fortran90程序。
我想使用MinGW64 Fortran和已知的MPI软件包在MinGW64平台上编译它。
但是,由于缺少"mpi.mod“,它无法工作。当我将use mpi替换为include 'mpif.h'时,它会产生其他错误(如下所示)。
有什么帮助吗?MPI套件是否与MinGW gfortran合作?
PS1:使用MPI和MinGW gfortran并不是一项容易的任务,https://social.microsoft.com/Forums/en-US/245dcda4-7699-494f-bbe1-b76eb19e53da/linking-msmpi-with-mingw-gfortran?forum=windowshpcmpi
C:\Users\milias\Documents\Dirac\software\autocmake-devel\ms-mpi>gfortran -fno- range-check -c example.f90
mpif.h:344.38:
Included at example.f90:4:
PARAMETER (MPI_AINT=z'4c00043b')
1
Error: PARAMETER attribute of 'mpi_aint' conflicts with PARAMETER attribute at (1)
mpif.h:359.35:
Included at example.f90:4:
PARAMETER (MPI_ADDRESS_KIND=INT_PTR_KIND())
1
Error: Function 'int_ptr_kind' in initialization expression at (1) must be an intrinsic function发布于 2015-08-26 11:16:29
在这里解决了,我为这份副本道歉。
https://github.com/scisoft/autocmake/issues/85#issue-102874399
https://stackoverflow.com/questions/32200131
复制相似问题