43 | | |
44 | | |
| 43 | = How to execute = |
| 44 | * start mpd: |
| 45 | {{{ |
| 46 | mpdboot -n 4 -f machine_file |
| 47 | }}} |
| 48 | -n how many mpds to start[[BR]] |
| 49 | -f hostsfile[[BR]] |
| 50 | * list all nodes |
| 51 | {{{ |
| 52 | mpdtrace [-l] |
| 53 | }}} |
| 54 | -l show full hostnames and listreing ports and ifhn[[BR]] |
| 55 | {{{ |
| 56 | node101 |
| 57 | node103 |
| 58 | node102 |
| 59 | hd05 |
| 60 | }}} |
| 61 | * executing |
| 62 | {{{ |
| 63 | mpiexec -n 12 ./mpi/a.out |
| 64 | }}} |
| 65 | -n number of processes to start |
| 66 | 執行時,每個 node 上必須有一份執行檔才不會出現以下錯誤 |
| 67 | {{{ |
| 68 | problem with execution of a.out on hd05: [Errno 2] No such file or directory |
| 69 | }}} |
| 70 | * causing all mpds to exit |
| 71 | {{{ |
| 72 | mpdallexit |
| 73 | }}} |