VC++ MFC プロジェクトで MS_MPI を使用する方法を知っている人はいますか? 私はすでに大規模な MFC プロジェクトを持っており、MPI を使用してその一部でのみ並列処理を使用したいと考えています。(別のコードで MPI を使用する方法は知っていますが、VC++ MFC プロジェクトに統合する方法はわかりません)
2 に答える
Not sure about MS_MPI, but you wanna look at MPICH2 Windows documentation guide at the url at the bottom.
9.3 MPI apps with GUI Many users on Windows machines want to build GUI apps that are also MPI applications. This is completely acceptable as long as the application follows the rules of MPI. MPI Init must be called before any other MPI function and it needs to be called soon after each process starts. The processes must be started with mpiexec but they are not required to be console applications. The one catch is that MPI applications are hidden from view so any Windows that a user application brings up will not be able to be seen. mpiexec has an option to allow the MPI processes on the local machine to be able to bring up GUIs. Add -localroot to the mpiexec command to enable this capability. But even with this option, all GUIs from processes on remote machines will be hidden.
So the only GUI application that MPICH2 cannot handle by default would be a video-wall type application. But this can be done by running smpd.exe by hand on each machine instead of installing it as a service. Log on to each machine and run “smpd.exe -stop” to stop the service and then run “smpd.exe -d 0” to start up the smpd again. As long as this process is running you will be able to run applications where every process is allowed to bring up GUIs.
: http://www.mcs.anl.gov/research/projects/mpich2/documentation/files/mpich2-1.2.1-windevguide.pdf
可能です。他の MPI プロジェクトと同じように使用します。
一般に、MFC プロジェクトから任意の C++ ライブラリにリンクできます。MFC は単なるライブラリのセットであり、他の C++ ライブラリの使用を制限するものではありません。