[問題] 將平行處理的CUDA和MPI做結合
遇到的問題: (題意請描述清楚)
MPI方面我用MPICH2,先各別將CUDA和MPI寫好程式,完成後
將CUDA的程式碼複製到MPI的程式碼內,
再將附檔名改為.cu,編譯完成後,使用MPICH2執行
此時MPICH2會出現錯誤訊息。
程式跑出來的錯誤結果:
Fatal error in MPI_Init: Other MPI error, error stack:
MPIR_Init_thread(394): Initialization failed
MPID_Init(103).......: channel initialization failed
MPID_Init(374).......: PMI_Init returned -1
[0] PMI_Init failed: FAIL - init called when another process has exited
without calling init
開發平台: (例: VC++ or gcc/g++ or Dev-C++, Windows or Linux)
VC++ 2008 ,Windows
補充說明:
GOOGLE大神已經敗過了,仍然無解
請有這方面經驗的大大不吝指點迷津
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.18.104.229
推
04/26 11:05, , 1F
04/26 11:05, 1F
討論串 (同標題文章)
完整討論串 (本文為第 1 之 3 篇):