||
第一步
项目——属性——fortran——libraries——use MKL——yes
在Microsoft Visual Studio的library属性里把 use Intel Math Kernel Library 加上就可以了,在其下拉菜单中随便选一个就行,除了NO。
第二步 (为了使用Fortran95接口)
项目——属性——链接器(Linker)——输入(Input)——Additional Dependencies 中输入 mkl_lapack95.lib.
在 Visual Studio 中,打开工程属性(在工程上右键,属性),然后展开 链接器(Linker) 设置,输入(Input),在 Additional Dependencies 中输入 mkl_lapack95.lib。
第三步
代码中加入 USE MKL95_LAPACK
注意
设置后,rebuild project
详细参见 http://blog.sina.com.cn/s/blog_a6c971960102v1l2.html
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-4-27 16:04
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社