我已經安裝了MPICH2 ..並且我能夠使用mpiexec執行示例代碼cpi.exe ..但是當我使用Visual Studio打開示例代碼並嘗試重建它時,它給了我鏈接器錯誤..作爲http://fossies.org/unix/misc/mpich2-1.4.1p1.tar.gz/我可以在Windows 7 visual studio 2010中的非GPU機器上運行MPI應用程序嗎?
guidlines for running
MPICH2 under windows...
MS visual studio..
我已經創建控制檯上的每mpich2-1.4.1p1/DOC/userguide/user.pdf 贏得32個項目,並能夠做這些步驟
{
For MS Developer Studio users: Create a project and add
C:\Program Files\MPICH2\include
to the include path and
C:\Program Files\MPICH2\lib
to the library path. Add mpi.lib and cxx.lib to the link command.
}
,但不能做
{
Add
cxxd.lib to the Debug target link instead of cxx.lib.
}
,因爲我不知道..其中的調試目標鏈接在Visual Studio設置...
當我試圖建設項目,它給了8個鏈接錯誤
{
1>IS-MPI.obj : error LNK2019: unresolved external symbol _MPI_Finalize referenced in function _main
1>IS-MPI.obj : error LNK2019: unresolved external symbol _MPI_Reduce referenced in function _main
1>IS-MPI.obj : error LNK2019: unresolved external symbol _MPI_Bcast referenced in function _main
1>IS-MPI.obj : error LNK2019: unresolved external symbol _MPI_Wtime referenced in function _main
1>IS-MPI.obj : error LNK2019: unresolved external symbol _MPI_Get_processor_name referenced in function _main
1>IS-MPI.obj : error LNK2019: unresolved external symbol _MPI_Comm_rank referenced in function _main
1>IS-MPI.obj : error LNK2019: unresolved external symbol _MPI_Comm_size referenced in function _main
1>IS-MPI.obj : error LNK2019: unresolved external symbol _MPI_Init referenced in function _main
1>C:\Users\Sheetal Tare\Documents\Visual Studio 2010\Projects\IS-MPI\Debug\IS-MPI.exe : fatal error LNK1120: 8 unresolved externals
}
請幫助我。如何解決這些??
你需要任何進一步的幫助對於這個問題?如果不是,你能接受答案。感謝周杰倫。 – 2012-01-15 21:42:31