我尝试使用英特尔MPI 4.0.0.012构建Boost.MPI 1.47,但是Boost无法找到安装。我在user-config.jam中尝试了各种using mpi ;
- 变体,其中包括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)相关联?
答案 0 :(得分:4)
麻烦是由于失踪造成的:在using
- 陈述中。 Boost.MPI在将其更正为using mpi : : <find-shared-library>impi ;
后编译正常(注意有两个':')。