Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix hack for smpi_replay in smpirun.
authorArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Mon, 8 Apr 2013 16:30:24 +0000 (18:30 +0200)
committerArnaud Giersch <arnaud.giersch@iut-bm.univ-fcomte.fr>
Tue, 9 Apr 2013 15:16:16 +0000 (17:16 +0200)
src/smpi/smpirun.in

index a5f406f..e290d20 100755 (executable)
@@ -174,7 +174,7 @@ while [ $# -gt 0 ]; do
      shift 1
    ;;
     *)
-      PROC_ARGS="$PROC_ARGS $1"
+      PROC_ARGS="${PROC_ARGS:+$PROC_ARGS }$1"
       shift      
     ;;
   esac
@@ -264,7 +264,7 @@ if [ -n "${HOSTFILE}" ] && [ -f ${HOSTFILE} ]; then
 fi
 
 if [ "${EXTOPT}" = "smpi_replay" ]; then
-  APP_TRACES=$1;
+  APP_TRACES=$PROC_ARGS
   if [ -n "${APP_TRACES}" ] && [ -f "${APP_TRACES}" ]; then
      hosttraces=(`cat ${APP_TRACES} | tr \\\n " "`)
      NUMTRACES=`cat ${APP_TRACES} | wc -l`