Fortran Coder

查看: 5862|回复: 1
打印 上一主题 下一主题

[并行] vs+ivf+mpi+mkl出现问题

[复制链接]

1

帖子

1

主题

0

精华

新人

F 币
9 元
贡献
3 点
跳转到指定楼层
楼主
发表于 2020-3-31 00:12:11 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
初次接触到要并行和傅里叶变换的Fortran程序,在网上查找了一堆资料,好不容易编译通过了,结果运行还是出问题。
步骤:
1.工具
(1)visual studio 2019
(2)Intel Parallel Studio XE 2020 cluster
2.配置mpi(本部分参考https://blog.csdn.net/weixin_42242227/article/details/104193679)
(1)在 Fortran => General => Additional Include Directories 添加Intel MPI 的包含目录:
        C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.0.164\windows\mkl\include
        
(2)在 Linker => General => Additional Library Directories 添加Intel MPI 的库目录:
        C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.0.164\windows\mkl\lib
        
(3)在 Linker => Input => Additional Dependencies,添加附属依赖项 impi.lib
        
(4)在 配置管理器=>平台,选择“x64”平台
(5)在 Debugging=>Command,添加mpiexec.exe的路径C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.0.164\windows\mpi\intel64\bin\mpiexec.exe
        
(6)在 Debugging=>Command Arguments ,添加 -n 4 "$(TargetPath)"
3.配置mkl(本部分参考http://bbs.fcode.cn/thread-361-1-1.html
(1)Project->Properties->Fortran->Libraries->Use Intel Math Kernel Library项,改为 Parallel (/Qmkl:parallel)
        
(2)以管理员身份运行C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2019\Visual Studio Tools\VC\x64 Native Tools Command Prompt for VS             2019
        使用命令cd C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2020.0.164\windows\mkl\interfaces\fftw2xf
        使用命令nmake libintel64 compiler=msvs
        
(3)在 Linker => Input => Additional Dependencies,添加附属依赖项 fftw2xf_double_msvs.lib
4.终于编译成功了,但运行时候出现如下错误,不知道是哪里的问题,有没有人可以帮帮看看鸭谢谢~

        
分享到:  微信微信
收藏收藏 点赞点赞 点踩点踩

796

帖子

2

主题

0

精华

大宗师

F 币
3787 元
贡献
2266 点
沙发
发表于 2020-4-1 13:28:44 | 只看该作者
access violation, 代码运行时错误,得自己调试。
您需要登录后才可以回帖 登录 | 极速注册

本版积分规则

捐赠本站|Archiver|关于我们 About Us|小黑屋|Fcode ( 京ICP备18005632-2号 )

GMT+8, 2024-4-20 15:42

Powered by Tencent X3.4

© 2013-2024 Tencent

快速回复 返回顶部 返回列表