2010-05-23 67 views
8

我試圖運行與升壓MPI程序,但事情是我不具備的.lib。所以,我試圖通過以下的http://www.boost.org/doc/libs/1_43_0/doc/html/mpi/getting_started.html#mpi.config,但不創建lib文件。這是怎麼回事?

說明書上說「對於很多用戶在使用LAM/MPI,MPICH,或的openmpi,配置幾乎是自動的」指令創建一個,我用C給自己的openmpi:\,但我沒有做任何更多的事情。我們需要對它做任何事嗎?我也在Program Files中找到了自己的MPICH2,並且也沒有做更多的事情。在這個指令的這一點上,我不確定我們到底要做什麼。

除此之外,該指令的另一種說法是:「如果您的主目錄中沒有文件user-config.jam,請在其中複製tools/build/v2/user-config.jam。」那麼,我只是做它說的。我在C:\ boost_1_43_0>中使用了「user-config.jam」以及「using mpi;」進入文件。

其次,這是我做了什麼:的bjam --with-MPI

C:\boost_1_43_0>bjam --with-mpi 
WARNING: No python installation configured and autoconfiguration 
     failed. See http://www.boost.org/libs/python/doc/building.html 
     for configuration instructions or pass --without-python to 
     suppress this message and silently skip all Boost.Python targets 

Building the Boost C++ Libraries. 


warning: skipping optional Message Passing Interface (MPI) library. 
note: to enable MPI support, add "using mpi ;" to user-config.jam. 
note: to suppress this message, pass "--without-mpi" to bjam. 
note: otherwise, you can safely ignore this message. 
warning: Unable to construct ./stage-unversioned 
warning: Unable to construct ./stage-unversioned 

Component configuration: 

    - date_time    : not building 
    - filesystem    : not building 
    - graph     : not building 
    - graph_parallel   : not building 
    - iostreams    : not building 
    - math      : not building 
    - mpi      : building 
    - program_options   : not building 
    - python     : not building 
    - random     : not building 
    - regex     : not building 
    - serialization   : not building 
    - signals     : not building 
    - system     : not building 
    - test      : not building 
    - thread     : not building 
    - wave      : not building 

...found 1 target... 


The Boost C++ Libraries were successfully built! 

The following directory should be added to compiler include paths: 

    C:\boost_1_43_0 

The following directory should be added to linker library paths: 

    C:\boost_1_43_0\stage\lib 


C:\boost_1_43_0> 

我看到有許多庫在C:\ boost_1_43_0 \階段\ lib中,但我看不出有什麼痕跡libboost_mpi-vc100-mt-1_43.lib或libboost_mpi-vc100-mt-gd-1_43.lib。這些是在mpi應用程序中鏈接所需的庫。

什麼可能出了錯不被建庫時?

回答

14

我懷疑它只是不讀您的用戶config.jam中......當構建是指,和搜索,用戶config.jam中它在%HOME%的位置這樣做。不在Boost源的根目錄中,也不在當前的目錄中。但是您可以使用具有以下選項的特定user-config.jam文件:bjam --user-config=user-config.jam ...。哪些只會在當前目錄中查找。或者你也可以指定文件的完整路徑。您應該閱讀mpi.jam工具文件中的註釋(mpi.jam),因爲它解釋了在哪些情況下它會自動設置mpi工具。特別是關於在您的路徑中有mpic++的注意事項。

0

我建提升1.55與下面的命令MPI: ./bjam鏈接=共享前綴= /軟件/ boost_1.55安裝

VIM工具/建設/ V2 /用戶config.jam中

- >>在用戶config.jam中的端部的 「使用MPI;」 (不帶引號)

./b2鏈接=共享前綴= /軟件/ boost_1.55安裝

如果我提供--with-MPI我得到了同樣的問題,所以我已經建立了它那辦法。