Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
kill ugly deprecated launcher
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 26 Feb 2016 11:21:13 +0000 (12:21 +0100)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Fri, 26 Feb 2016 11:21:13 +0000 (12:21 +0100)
examples/msg/chord/CMakeLists.txt
examples/msg/chord/run_chord [deleted file]

index c0a4dd8..a931a21 100644 (file)
@@ -18,5 +18,4 @@ set(examples_src
 set(bin_files
   ${bin_files}
   ${CMAKE_CURRENT_SOURCE_DIR}/generate.py
 set(bin_files
   ${bin_files}
   ${CMAKE_CURRENT_SOURCE_DIR}/generate.py
-  ${CMAKE_CURRENT_SOURCE_DIR}/run_chord
   PARENT_SCOPE)
   PARENT_SCOPE)
diff --git a/examples/msg/chord/run_chord b/examples/msg/chord/run_chord
deleted file mode 100755 (executable)
index 8c3049b..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/bash
-
-# This script runs Chord with the specified number of nodes.
-# Usage: ./run_chord nb_nodes
-# The platform file is chosen as the smallest platform of the files
-# examples/platforms/cluster_with_*_hosts.xml that contains enough nodes.
-
-# check arguments number
-if [ $# != 1 ]; then
-  echo "Usage: ./run_chord nb_nodes"
-  exit 1
-fi
-
-# pick an appropriate platform file
-if [ $1 -le 100 ]; then
-  platform=100
-else
-  if [ $1 -le 1000 ]; then
-    platform=1000
-  else
-    if [ $1 -le 10000 ]; then
-      platform=10000
-    else
-      if [ $1 -le 100000 ]; then
-       platform=100000
-      else
-       if [ $1 -le 300000 ]; then
-         platform=300000
-       else
-         echo "Cannot find a platform file large enough."
-         exit 2
-       fi
-      fi
-    fi
-  fi
-fi
-
-# set up the deployment file
-nb_lines=$[ $1 + 3]
-head -n $nb_lines chord300000.xml > tmp_depl.xml
-echo "</platform>" >> tmp_depl.xml
-
-# run Chord
-./chord -nb_bits=24 -timeout=50 "../../platforms/cluster_with_${platform}_hosts.xml" tmp_depl.xml
-
-# cleanup
-# rm tmp_depl.xml
-