Open MPI install problems

已嘗試安裝OpenMPI但在測試時無法使用gcc編譯,嘗試使用mpicc編譯也一樣,
都顯示找不到mpi.h的標頭檔
想請問有沒有人知道如何解決

同學好,

請你提供 OpenMPI 的安裝方式及使用方式。
我們才能了解問題並幫助你。

謝謝你!

謝謝學長!

我昨天查完網路資料後有找到安中的方法了
測試之後mpi運作正常
但是在執行 mpirun -H 10.21.21.1:4,10.21.21.2:4 ./mpi 的時候會卡住
執行 mpirun ./mpi 又能執行
只有一台電腦的四個CPU 有執行
想請教一下為什麼

同學好,

此問題很可能是因為你 head node → worker node 沒有辦法直接透過 ssh key 連線。

請確保 head node → worker node 的 ssh 不需要打密碼。

可以使用 ssh-keygen 和 ssh-copy-id 來完成,更多內容請參考簡報。

展佑

mpirun was unable to launch the specified application as it could not access
or execute an executable:

Executable: ./mpi
Node: wade-h

while attempting to start process rank 0.
8 total processes failed to start

修正了ssh之後
又出現這個訊息 :sweat_smile:

同學好,請檢查檔案是否可執行
可以使用以下指令給予權限。

chmod +x