在Windows上使用Intel fortran的HDF5 [英] Use HDF5 from intel fortran on windows

查看:632
本文介绍了在Windows上使用Intel fortran的HDF5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用Visual Studio 2010在Windows 7上使用intel fortran 2011编译的fortran90程序创建一个HDF5数据集

I would like to create a HDF5 dataset from a fortran90 program compiled with intel fortran 2011 on Windows 7 using Visual Studio 2010

我可以使用预构建的二进制文件还是如何构建新的二进制文件

Can I use prebuilt binaries or how do I build new ones

推荐答案

我的成功归功于High Performance Mark: 这就是我所做的(不确定是否一切必要):

I succeeded thanks to High Performance Mark: Here was what I did (not sure that everything is necessary):

  • 下载并安装cmake
  • 下载并安装HDF5 [Windows(32位),编译器:CMake VS 2010 C,C ++,IVF 12,RWDI]
  • 设置环境变量:HDF5_DIR = C:/Program Files/HDF_Group/HDF5/1.8.x/cmake/hdf5
  • 下载HDF5源
  • 创建一个空的构建文件夹
  • 从开始菜单运行CMake(cmake-gui)
  • 设置源(HDF5源)和目标(空构建文件夹)
  • 配置
  • 将生成器设置为Visual Studio 10
  • 指定本机编译器[C:",C ++:",Fortran:< ..> \ ifort.exe"]
  • 检查:BUILD_SHARED_LIBS和HDF5_BUILD_FORTRAN
  • 配置
  • 配置
  • 生成
  • 在Visual Studio 2010中打开< ..> \ build \ HDF5.sln
  • 构建项目ALL_BUILD
  • Download and install cmake
  • Download and install HDF5 [Windows (32-bit), Compilers: CMake VS 2010 C, C++, IVF 12, RWDI]
  • Set environment variable: HDF5_DIR=C:/Program Files/HDF_Group/HDF5/1.8.x/cmake/hdf5
  • Download HDF5 source
  • Make empty build folder
  • Run CMake(cmake-gui) from start menu
  • Set source (HDF5 source) and destination (empty build folder)
  • Configure
  • Set generator to Visual Studio 10
  • Specify native compilers [C:"", C++:"", Fortran: "<..>\ifort.exe"]
  • Check: BUILD_SHARED_LIBS and HDF5_BUILD_FORTRAN
  • Configure
  • Configure
  • Generate
  • Open <..>\build\HDF5.sln in Visual Studio 2010
  • build project ALL_BUILD

最后

  • 使用Fortran示例创建新项目
  • 完全按照高性能标记的描述链接生成的库

我希望其他人可以使用该收据.

I hope some else can use the reciepe.

再次感谢

这篇关于在Windows上使用Intel fortran的HDF5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆