2

我正在尝试使用 Intel MPI 4.0.0.012 构建 Boost.MPI 1.47,但 Boost 无法找到安装。我using mpi ;在 user-config.jam 中尝试了各种 -variants,包括using mpi ;using mpi : mpicl ;using mpi : c:/path/to/mpi/mpicl.bat没有运气。我也尝试过使用using mpi : <find-shared-library>impi ;虽然我不确定<find-shared-library>真正做什么)。

使用using mpi ;我得到:

===============MPI Auto-configuration===============
Did not find Microsoft Compute Cluster Pack in C:\Program Files\Microsoft Comput
e Cluster Pack.
warning: toolset mpi initialization: can not find tool mpic++
warning: initialized from c:\temp\boost_1_47_0\tools/build/v2\user-config.jam:94

The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
MPI auto-detection failed: unknown wrapper compiler mpic++
Please report this error to the Boost mailing list: http://www.boost.org
You will need to manually configure MPI support.
warning: toolset mpi initialization: can not find tool mpirun
warning: initialized from c:\temp\boost_1_47_0\tools/build/v2\user-config.jam:94

MPI launcher: mpirun -np
====================================================

使用using mpi : mpicc我得到:

===============MPI Auto-configuration===============
warning: toolset mpi initialization:
warning: can not find user-provided command  'mpicl'
warning: initialized from c:\temp\boost_1_47_0\tools/build/v2\user-config.jam:94

The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
The system cannot find the path specified.
MPI auto-detection failed: unknown wrapper compiler mpicl
Please report this error to the Boost mailing list: http://www.boost.org
You will need to manually configure MPI support.
warning: toolset mpi initialization: can not find tool mpirun
warning: initialized from c:\temp\boost_1_47_0\tools/build/v2\user-config.jam:94

MPI launcher: mpirun -np
====================================================

using mpi : <find-shared-library>impi ;结果是

MPI auto-detection failed: unknown wrapper compiler <find-shared-library>impi

如何将 Boost.MPI 与英特尔 MPI(Windows、Visual Studio 2010、x64)链接?

4

1 回答 1

4

麻烦是由于using-statment 中缺少 : 引起的。Boost.MPI 将其更正后编译良好using mpi : : <find-shared-library>impi ;(注意有两个':')。

于 2011-11-03T09:14:16.497 回答