| | 26 | === MPICH2 Setup == |
| | 27 | * The following command invokes MPICH2 daemons to several servers listed on $(HOSTNAME_LIST_FILE), which contains host names accessible from the current machine using rsh or ssh without password authentication: |
| | 28 | |
| | 29 | {{{ |
| | 30 | > mpdboot -np $(NUM_PROCESS) -f $(HOSTNAME_LIST_FILE) |
| | 31 | ... |
| | 32 | }}} |
| | 33 | |
| | 34 | * Then, test mpd daemons working correctly: |
| | 35 | |
| | 36 | {{{ |
| | 37 | > mpdtrace |
| | 38 | istbs000.i.u-tokyo.ac.jp |
| | 39 | istba002.i.u-tokyo.ac.jp |
| | 40 | ... |
| | 41 | }}} |
| | 42 | |
| | 43 | * Replication Program |
| | 44 | * mpiexec |
| | 45 | * -n specifies number of processes to be spawned |
| | 46 | * -l option displays messages of each process prefixed with its process rank |
| | 47 | |
| | 48 | {{{ |
| | 49 | > mpiexec -n 10 -l Replication -d (the output folder of receiver processes) (file path) |
| | 50 | ( sending a file to the remote proceses) |
| | 51 | }}} |
| | 52 | |
| | 53 | * N-Body Simulation Program |
| | 54 | {{{ |
| | 55 | > mpiexec -n 20 -l N-body -d -p (NUM_PARTICLES) -s (NUM_STEPS) |
| | 56 | }}} |
| | 57 | |