From: W. Trevor King Date: Wed, 13 Oct 2010 16:41:26 +0000 (-0400) Subject: mpdboot requires an `-n N` option. Adjust src/*/README accordingly. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2a9b129c996e73ba15827841e593e7a245748c9f;p=parallel_computing.git mpdboot requires an `-n N` option. Adjust src/*/README accordingly. --- diff --git a/src/MPI2_message_passing/README b/src/MPI2_message_passing/README index 34db2b5..20e6886 100644 --- a/src/MPI2_message_passing/README +++ b/src/MPI2_message_passing/README @@ -52,10 +52,10 @@ Usage Start the Message Passing Daemons with - $ mpdboot -f mpd.hosts + $ mpdboot -n 4 -f mpd.hosts -which spawns a daemon (`mpd`) on each host. Then run your program -(e.g. `simplest_message`) with. +which spawns a daemon (`mpd`) on the first four hosts in `mpd.hosts`. +Then run your program (e.g. `simplest_message`) with. $ mpiexec -n 4 ./simplest_message diff --git a/src/average/README b/src/average/README index 22d61cc..f582649 100644 --- a/src/average/README +++ b/src/average/README @@ -35,6 +35,6 @@ Serial code Parallel code - $ mpdboot -f mpd.hosts + $ mpdboot -n 4 -f mpd.hosts $ mpiexec -n 4 ./average_parallel data $ mpdallexit diff --git a/src/global_operations/README b/src/global_operations/README index dbafc6c..ea5834c 100644 --- a/src/global_operations/README +++ b/src/global_operations/README @@ -32,7 +32,7 @@ Serial code Parallel code - $ mpdboot -f mpd.hosts + $ mpdboot -n 4 -f mpd.hosts $ mpiexec -n 4 ./global_mpi_operations $ mpiexec -n 4 ./broadcast $ mpdallexit diff --git a/src/hello_MPI/README b/src/hello_MPI/README index c3c1ca1..16eee06 100644 --- a/src/hello_MPI/README +++ b/src/hello_MPI/README @@ -54,10 +54,11 @@ Create a list of possible hosts `mpd.hosts`, for example xphy1.physics.xterm.net xphy2.physics.xterm.net ... + xphy15.physics.xterm.net Start the Message Passing Daemons with - $ mpdboot -f mpd.hosts + $ mpdboot -n 15 -f mpd.hosts which spawns a daemon (`mpd`) on each host. Then run your program (e.g. `hello`) with.