此文章目的在于在windows中,使用Intel visual fortran 中的mpi并行库。
版本:Intel Visual Fortran 2019 && Visual Studio 2017
在sublime text 3中配置编译器。
首先,你需要在
E:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2019.4.245\windows\mpi\intel64\bin
此目录中作为管理员打开命令行,其实就是在你的安装目录中找到windows\mpi\intel64\bin这个子目录。
运行
> hydra_service -install
> hydra_service -start
如果出现了permession denied,说明你没有给它管理员权限。
然后运行
mpiexec -register
然后会让你输入用户名密码如下:
account (domain\user) [<your user id>]:
password:
confirm password:
Password encrypted into the Registry
注意:这个用户名密码,是你的电脑的用户名与密码!!!
你的用户名可以在C盘->用户中看到,密码是你的登录密码,注意不是PIN码。
如果你的用户名密码输入错误的话,在运行mpiexec的时候会出现如下错误:
[mpiexec@PC-20170921LUEZ] HYDI_bstrap_service_launch (bstrap\service\service_launch.c:444): server rejected credentials
[mpiexec@PC-20170921LUEZ] HYD_bstrap_setup (bstrap\src\hydra_bstrap.c:420): error launching bstrap proxy
[mpiexec@PC-20170921LUEZ] wmain (mpiexec.c:1878): error setting up the boostrap proxies
然后我建立了一个mpiifort的.sublime-build文件,具体见我的另一篇博客。
(我现在还没写好)
参考网址
如何使用Intel Visiual Fortan编译器为Windows编译和运行并行程序
Getting Started with Intel® MPI Library for Windows* OS (Beta) | Intel® Software