Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
use sensible process names (their rank) in SMPI, and get simix ignore that
authorMartin Quinson <martin.quinson@loria.fr>
Mon, 26 Dec 2011 23:01:56 +0000 (00:01 +0100)
committerMartin Quinson <martin.quinson@loria.fr>
Mon, 26 Dec 2011 23:01:56 +0000 (00:01 +0100)
src/smpi/smpi_global.c
src/smpi/smpirun.in

index 13d3c59..6fa73d2 100644 (file)
@@ -271,7 +271,7 @@ int MAIN__(void)
   // parse the platform file: get the host list
   SIMIX_create_environment(xargv[1]);
 
-  SIMIX_function_register("smpi_simulated_main", smpi_simulated_main);
+  SIMIX_function_register_default(smpi_simulated_main);
   SIMIX_launch_application(xargv[2]);
 
   smpi_global_init();
index 677f932..ad8295b 100755 (executable)
@@ -229,7 +229,7 @@ do
   else
        host="${hostnames[$j]}"
   fi
-  echo "  <process host=\"${host}\" function=\"smpi_simulated_main\">" >> ${APPLICATIONTMP}
+  echo "  <process host=\"${host}\" function=\"rank$i\"> <!-- function name used only for logging -->" >> ${APPLICATIONTMP}
   echo "    <argument value=\"$i\"/> <!-- rank -->" >> ${APPLICATIONTMP}
   for ARG in $*; do
     echo "    <argument value=\"${ARG}\"/>" >> ${APPLICATIONTMP}