注册 登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

notes

@-@

 
 
 

日志

 
 
 
 

Compile with Compaq Visual Fortran on Windows  

2009-05-21 17:31:44|  分类: MPI |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

Compile with Compaq Visual Fortran on Windows

To compile Mohid with Compaq Visual Fortran 6.6c using MPI (MPICH2) in Windows please follow this steps:

  1. Setup a Mohid Project to compile with Compaq Visual Fortran (CVF6.6c). See more on Compiling with CVF.
  2. Make sure that in the same folder where the HDF5 libraries are placed you have the fmpich2s.lib file. If not, get it from SourceSafe.
  3. Create new configuration by going to "Build...Configurations".
  4. Click "Add".
  5. Name your new configuration e.g. "MPI".
  6. Select "Release" configuration from the "Copy settings from" dropdown box
  7. Press "OK", and then "Close".
  8. Go to "Project...Settings"
  9. Select the "Fortran" tab and "Preprocessor" in the "Category" dropdown box
  10. Include the _USE_MPI keyword in the "Predefined Preprocessor Symbols" text box
  11. Select the "Link" tab
  12. Select "General" in the "Category" dropdown box
  13. Add fmpich2s.lib at the "Object/library modules" text box

Compile with Intel Fortran Compiler on Windows

To compile Mohid with Intel Fortran Compiler 9.x (IFC) using MPI in Windows please follow this steps:

  1. You must have installed MPICH2 in your PC (and in the ones you which to use).
  2. Setup a Mohid Project to compile with IFC. See more on Compiling with IFC.
  3. Make sure that in the same folder where the HDF5 libraries are placed you have the fmpich2.lib file. If not, get it from SourceSafe.
  4. Create new configuration by going to "Build...Configurations".
  5. Select "<New...>" from the "Active Solution Configuration" dropdown box
  6. Name your new configuration in the "Solution Configuration Name" text box (e.g. "MPI")
  7. Select "Release" configuration from the "Copy settings from" dropdown box
  8. Press "OK", and then "Close".
  9. Go to "Project...Properties"
  10. Select "Fortran" and then "Preprocessor" in the "Configuration Properties" tree view menu
  11. Include the _USE_MPI keyword in the "Preprocessor Definition" text box
  12. Select the "Linker" and then "Input"
  13. Add fmpich2.lib in the "Additional Dependencies" text box
  14. Press the "Apply" button and then "OK"
  15. Rebuild

Compile with IFC on Linux

  • Build the mpich libraries:
>./configure --enable-f90 --enable-romio
>make
>make testing
>make install
  • Build the hdf5 libs with MPI:
CC=mpicc F9X=mpif90 ./configure --enable-fortran --disable-shared --prefix=/home/guillaume/Projects/hdf5/hdf5-1.6.5/hdf5_mpi
make
make install
  • Build MohidWater with MPI
make nix_mpi

Basically nix_mpi uses mpif90 instead of ifort and appends the argument -D_USE_MPI in the CCFLAGS environment variable.

  评论这张
 
阅读(809)| 评论(0)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018