简体   繁体   English

如何在MinGW中使用MPI(openMPI或MPICH2)-GNU gfortran编译器

[英]How to use MPI (openMPI or MPICH2) with minGW - GNU gfortran compiler

I am using the eclipse PTP IDE to develop MPI code, I want to be able to compile MPI on windows, it seems to provide c++ and c binding, but I am writing using fortran and gfortran compiler and would like to work in windows, the current problem doesn't exist on linux because there it is possible to compile the libraries locally in linux and use the .mod modules. 我正在使用eclipse PTP IDE开发MPI代码,我希望能够在Windows上编译MPI,它似乎提供了c ++和c绑定,但是我正在使用fortran和gfortran编译器进行编写,并且希望在Windows中工作,当前问题在linux上不存在,因为可以在linux本地编译库并使用.mod模块。

I wanted to compile the modules using cygwin but the GNU gfortran version on cygwin is too old, and I wasn't successful openMPI or MPICH2 on windows using miniGW 我想使用cygwin编译模块,但是cygwin上的GNU gfortran版本太旧了,在使用miniGW的Windows上我无法成功打开openMPI或MPICH2

any suggestions? 有什么建议么? maybe using c++ binding in fortran 2003, I write my code in fortran 2003 so it support this feature. 也许在fortran 2003中使用c ++绑定,我在fortran 2003中编写了代码,因此它支持此功能。

Documentation on this issue is lacking. 缺少有关此问题的文档。

Thank you. 谢谢。

According to the MPICH2 Installer's Guide MPICH2 can be built under cygwin (see section 9.3 of the same document), so the version of gfortran shouldn't be an issue. 根据《 MPICH2安装指南》, MPICH2可以在cygwin下构建(请参见同一文档的9.3节),因此gfortran的版本应该不是问题。 Have you followed the instructions in this document (in particular section 2)? 您是否遵循了本文档中的说明(特别是第2节)?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM