How to build boost::mpi library with Open MPI on Windows with Visual Studio 2010

久未见 提交于 2019-12-02 05:22:34

I've found the solution to this in an older blog:

What worked for me (tested only with OpenMPI):

  1. add the c:\OpenMPI_v1.6.2-win32\bin\ to the path variable
  2. inside BOOST_ROOT\tools\build\v2\user-config.jam: using msvc ; using mpi ;
  3. inside mpi.jam I've changed local cluster_pack_path_native = "C:\Program Files\Microsoft Compute Cluster Pack" ; to local cluster_pack_path_native = "c:\OpenMPI_v1.6.2-win32" ;
  4. run bjam --with-mpi

Might be working for me... I used Microsoft MPI instead of OpenMPI.

  1. Install Microsoft MPI
  2. edit project-config.jam and add using mpi ;
  3. edit tools\build\v2\map.jam and find Microsoft Computer Cluster and change the path to C:\Program Files\Microsoft MPI
  4. rename the Inc folder in C:\Program Files\Microsoft MPI to Include
  5. run bjam --with-mpi

gives me link errors, but I'm posting what I got...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!