如何建立的boost :: MPI库MPI打开Windows上使用Visual Studio 2010 [英] How to build boost::mpi library with Open MPI on Windows with Visual Studio 2010

查看:782
本文介绍了如何建立的boost :: MPI库MPI打开Windows上使用Visual Studio 2010的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我安装了Open MPI的1.5.4(64位),我试图重建Boost库(1.48)用的bjam。

I installed Open MPI 1.5.4 (64 bit) and I am trying to rebuild boost libraries (1.48) with bjam.

我改变了用户config.jam中的文件,通过使用具有明确编译器的路径MPI线增加(虽然MPIC ++已经在PATH环境变量中):

I changed user-config.jam file, by adding using mpi line with explicit compiler path (although mpic++ is already in PATH environment variable):

using mpi : "C:/Program Files (x86)/OpenMPI_v1.5.4-x64/bin/mpic++.exe" ;

然后我试图从命令提示符中运行以下命令:

Then I tried to run from command prompt the following command:

bjam toolset=msvc --build-type=complete --with-mpi --address-model=64 stage

不幸的是,构建过程仍然需要更多的提示。错误报告的部分看起来像:

Unfortunately, the build process still needs more hints. Part of the error reporting looks like:

MPI auto-detection failed: unknown wrapper compiler C:/Program Files (x86)/OpenMPI_v1.5.4-x64/bin/mpic++.exe

有没有人设法在Windows下编译升压MPI与Open MPI?我缺少的东西吗?

Did anybody managed to compile Boost MPI with Open MPI under Windows? Am I missing something?

推荐答案

我发现在一个旧的博客

什么工作对我来说(仅适用于测试的openmpi):

What worked for me (tested only with OpenMPI):


  1. 的C加:\\ OpenMPI_v1.6.2-win32的\\ BIN \\ path变量

  2. BOOST_ROOT \\工具\\编译\\ V2 \\用户config.jam中内:使用MSVC;使用MPI;

  3. 内mpi.jam我已经改变了当地cluster_pack_path_native =C:\\ Program Files文件\\微软计算群集包;当地cluster_pack_path_native =C:\\ OpenMPI_v1.6.2-win32的;

  4. 运行的bjam --with-MPI

这篇关于如何建立的boost :: MPI库MPI打开Windows上使用Visual Studio 2010的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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