From 34d474e6f6be91c71f775353852ce224a5a5fa82 Mon Sep 17 00:00:00 2001 From: evomarc Date: Thu, 18 Apr 2002 03:23:24 +0000 Subject: [PATCH] Ome explanations on how to launch the examples --- eo/tutorial/ParadisEO/README | 52 ++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 eo/tutorial/ParadisEO/README diff --git a/eo/tutorial/ParadisEO/README b/eo/tutorial/ParadisEO/README new file mode 100644 index 000000000..35688438f --- /dev/null +++ b/eo/tutorial/ParadisEO/README @@ -0,0 +1,52 @@ +Using the examples +================== + +Compiling the examples +---------------------- +Of course, you need to have MPICH installed, and to set the MPICH +variable before compiling if it is not in your regular path (see the +Makefiles). + +Running the examples +-------------------- +1- For SPMD applications, this is easy. The command is: + +> mpirun -np <#num_procs> + +For example, + +> mpirun -np 3 IslandBitEA + +will launch a 3 islands-based evolutionary algorithm on the same +computer. + +-------------------- +2- When you want to run different executables on some hosts, you need +a configuration file to tell which executable is running on which +machine. For instance, in Lesson1, the config file + +pc1 0 ${HOME}/eo/tutorial/ParadisEO/Lesson1/IslandBitEA1 +pc2 1 ${HOME}/eo/tutorial/ParadisEO/Lesson1/IslandBitEA1 +pc3 1 ${HOME}/eo/tutorial/ParadisEO/Lesson1/IslandBitEA2 +pc4 1 ${HOME}/eo/tutorial/ParadisEO/Lesson1/IslandBitEA2 + +is then run by the command ***launched on pc1*** + +> mpirun -p4pg pgfile ${HOME}/eo/tutorial/ParadisEO/Lesson1/IslandBitEA1 + +and will run specifies 4 processes, respectively on the hosts pc1, +pc2, pc3 and pc4. + +Here, the path of the executables are identical, but this is always +the case. + +There ***need*** to be exactly one line corresponding to the local +computer you are running the mpirun command from with 0 after the +hostname and the name of the executable ***must*** be the same than +the name you give on the mpirun command line + +You must be able to connect to all the computers listed in the +config file using ssh + +You can put the IP numbers of the computers, but NOT use 127.0.0.1 +to specify the local host if you have more than one computer involved