8

Boost MPIを使用してプログラムを実行しようとしていますが、.libがありません。だから私はhttp://www.boost.org/doc/libs/1_43_0/doc/html/mpi/getting_started.html#mpi.configの指示に従って作成しようとしています

「LAM/MPI、MPICH、またはOpenMPIを使用している多くのユーザーの場合、構成はほぼ自動です」という説明があり、C:\でOpenMPIを取得しましたが、それ以上何もしませんでした。私たちはそれで何かをする必要がありますか?また、プログラムファイルでMPICH2を取得しましたが、それ以上のことは何もしませんでした。指示のこの時点で、私は正確に何をしなければならないのかよくわかりません。

その横に、命令からの別のステートメント:「ホームディレクトリにファイルuser-config.jamがまだない場合は、そこにtools / build / v2/user-config.jamをコピーします。」まあ、私は単にそれが言うことをします。C:\boost_1_43_0>に「usingmpi;」と一緒に「user-config.jam」を取得しました。ファイルに。

次に、これは私がやったことです: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 \ stage \ libには多くのライブラリがあるようですが、libboost_mpi-vc100-mt-1_43.libまたはlibboost_mpi-vc100-mt-gd-1_43.libの痕跡はまったくありません。これらは、mpiアプリケーションでリンクするために必要なライブラリです。

ライブラリが構築されていないときに何がうまくいかなかった可能性がありますか?

4

2 に答える 2

14

user-config.jamを読み取っていないのではないかと思います...ビルドがuser-config.jamを参照して検索すると、%HOME%の場所で読み取られます。Boostソースのルートディレクトリにも、現在のディレクトリにもありません。ただし、オプションを指定して特定のuser-config.jamファイルを使用するようにすることができますbjam --user-config=user-config.jam ...。これは、現在のディレクトリでのみ検索します。または、ファイルへのフルパスを指定することもできます。mpi.jamツールファイル(mpi.jam)のコメントを読んでください。どのような条件下でmpiツールが自動的にセットアップされるかが説明されています。具体的にはmpic++、あなたの道にいることについてのメモ。

于 2010-05-23T18:54:58.783 に答える
0

次のコマンドを使用して、mpiを使用してboost1.55をビルドしました。./bjamlink= shared --prefix = / software / boost_1.55 install

vim tools / build / v2 / user-config.jam

->>user-config.jamの最後に「usingmpi;」(引用符なし)

./b2 link = shared --prefix = / software / boost_1.55 install

--with-mpiを提供すると、同じ問題が発生するため、そのように構築しました。

于 2014-05-08T06:16:28.023 に答える