Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Ignore ignorable
authormquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 16 May 2006 23:39:49 +0000 (23:39 +0000)
committermquinson <mquinson@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Tue, 16 May 2006 23:39:49 +0000 (23:39 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@2234 48e7efb5-ca39-0410-a469-dd3cf9ba447f

examples/gras/alltoall/.cvsignore [new file with mode: 0644]
examples/gras/alltoall/alltoall.Makefile.local [deleted file]
examples/gras/alltoall/alltoall.Makefile.remote [deleted file]
examples/gras/alltoall/alltoall.deploy.sh [deleted file]
examples/gras/alltoall/test_rl [deleted file]
examples/gras/alltoall/test_sg [deleted file]

diff --git a/examples/gras/alltoall/.cvsignore b/examples/gras/alltoall/.cvsignore
new file mode 100644 (file)
index 0000000..9b32f72
--- /dev/null
@@ -0,0 +1 @@
+alltoall.deploy.sh alltoall.Makefile.remote alltoall.Makefile.local test_rl test_sg
diff --git a/examples/gras/alltoall/alltoall.Makefile.local b/examples/gras/alltoall/alltoall.Makefile.local
deleted file mode 100644 (file)
index 04cbaff..0000000
+++ /dev/null
@@ -1,90 +0,0 @@
-############ PROJECT COMPILING AND ARCHIVING #########
-PROJECT_NAME=alltoall
-DISTDIR=gras-$(PROJECT_NAME)
-
-GRAS_ROOT?= $(shell echo "\"<<<< GRAS_ROOT undefined !!! >>>>\"")
-CFLAGS = -O3 -w -g
-INCLUDES = -I$(GRAS_ROOT)/include
-LIBS_SIM = -lm  -L$(GRAS_ROOT)/lib/ -lsimgrid
-LIBS_RL = -lm  -L$(GRAS_ROOT)/lib/ -lgras
-LIBS = 
-
-C_FILES = _alltoall_simulator.c _alltoall_node.c alltoall.c
-OBJ_FILES = 
-BIN_FILES = alltoall_simulator alltoall_node 
-
-all: $(BIN_FILES)
-
-alltoall_simulator: _alltoall_simulator.o alltoall.o
-       $(CC) $(INCLUDES) $(DEFS) $(CFLAGS) $^ $(LIBS_SIM) $(LIBS) $(LDADD) -o $@ 
-alltoall_node : _alltoall_node.o alltoall.o
-       $(CC) $(INCLUDES) $(DEFS) $(CFLAGS) $^ $(LIBS_RL) $(LIBS) $(LDADD) -o $@ 
-
-%: %.o
-       $(CC) $(INCLUDES) $(DEFS) $(CFLAGS) $^ $(LIBS) $(LDADD) -o $@ 
-
-%.o: %.c
-       $(CC) $(INCLUDES) $(DEFS) $(CFLAGS) -c -o $@ $<
-
-DIST_FILES= $(C_FILES) alltoall.Makefile.local alltoall.Makefile.remote
-distdir: $(DIST_FILES)
-       rm -rf $(DISTDIR)
-       mkdir -p $(DISTDIR)
-       cp $^ $(DISTDIR)
-
-dist: clean distdir
-       tar c $(DISTDIR) | gzip -c > $(DISTDIR).tar.gz
-
-clean:
-       rm -f $(BIN_FILES) $(OBJ_FILES) *~ alltoall.o _alltoall_simulator.o _alltoall_node.o
-       rm -rf $(DISTDIR)
-
-.SUFFIXES:
-.PHONY : clean
-
-############ REMOTE COMPILING #########
-MACHINES ?= Bourassa Fafard Ginette Jupiter Tremblay 
-INSTALL_PATH ?='$$HOME/tmp/src' ### Has to be an absolute path !!! 
-GRAS_ROOT ?='$(INSTALL_PATH)' ### Has to be an absolute path !!! 
-SRCDIR ?= ./
-SIMGRID_URL ?=http://gcl.ucsd.edu/simgrid/dl/
-SIMGRID_VERSION ?=2.92
-GRAS_PROJECT ?= alltoall
-GRAS_PROJECT_URL ?= http://www-id.imag.fr/Laboratoire/Membres/Legrand_Arnaud/gras_test/
-
-remote:
-       @echo;echo "----[ Compile the package on remote hosts ]----"
-       @test -e $(SRCDIR)/buildlogs/ || mkdir -p $(SRCDIR)/buildlogs/
-        for site in $(MACHINES) ; do \
-          machine=`echo $$site |sed 's/^\([^%]*\)%.*$$/\1/'`;\
-          machine2=`echo $$site |sed 's/^\([^%]*\)%\(.*\)$$/\2/'`;\
-          cmd_mkdir="\"sh -c 'env INSTALL_PATH=$(INSTALL_PATH) GRAS_ROOT=$(GRAS_ROOT) \
-                               SIMGRID_URL=$(SIMGRID_URL) SIMGRID_VERSION=$(SIMGRID_VERSION) GRAS_PROJECT=$(GRAS_PROJECT) \
-                               GRAS_PROJECT_URL=$(GRAS_PROJECT_URL)  mkdir -p $(INSTALL_PATH) 2>&1'\"";\
-          cmd_make="\"sh -c 'env INSTALL_PATH=$(INSTALL_PATH) GRAS_ROOT=$(GRAS_ROOT) \
-                               SIMGRID_URL=$(SIMGRID_URL) SIMGRID_VERSION=$(SIMGRID_VERSION) GRAS_PROJECT=$(GRAS_PROJECT) \
-                               GRAS_PROJECT_URL=$(GRAS_PROJECT_URL)  make -C $(INSTALL_PATH) -f alltoall.Makefile.remote $(ACTION) 2>&1'\"";\
-          if echo $$site | grep  '%' >/dev/null ; then \
-            echo "----[ Compile on $$machine2 (behind $$machine) ]----";\
-          else \
-            machine=$$site;\
-            echo "----[ Compile on $$machine ]----";\
-          fi;\
-          if echo $$site | grep  '%' >/dev/null ; then \
-            if ssh $$machine "ssh -A $$machine2 $$cmd_mkdir" 2>&1 > $(SRCDIR)/buildlogs/$$site.log;\
-            then true; else failed=1;echo "Failed (check $(SRCDIR)/buildlogs/$$site.log)"; fi;\
-          else \
-            if ssh $$machine "eval $$cmd_mkdir" 2>&1 > $(SRCDIR)/buildlogs/$$site.log ;\
-            then true; else failed=1;echo "Failed (check $(SRCDIR)/buildlogs/$$site.log)"; fi; \
-          fi;\
-          echo "-- Copy the data over"; \
-          scp alltoall.Makefile.remote $$site:$(INSTALL_PATH) ;\
-          echo "-- Compiling... (the output gets into $(SRCDIR)/buildlogs/$$site.log)"; \
-          if echo $$site | grep  '%' >/dev/null ; then \
-            if ssh $$machine "ssh -A $$machine2 $$cmd_make" 2>&1 >> $(SRCDIR)/buildlogs/$$site.log;\
-            then echo "Sucessful"; else failed=1;echo "Failed (check $(SRCDIR)/buildlogs/$$site.log)"; fi;echo; \
-          else \
-            if ssh $$machine "eval $$cmd_make" 2>&1 >> $(SRCDIR)/buildlogs/$$site.log ;\
-            then echo "Sucessful"; else failed=1;echo "Failed (check $(SRCDIR)/buildlogs/$$site.log)"; fi;echo; \
-          fi;\
-        done;
diff --git a/examples/gras/alltoall/alltoall.Makefile.remote b/examples/gras/alltoall/alltoall.Makefile.remote
deleted file mode 100644 (file)
index 2a27356..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-INSTALL_PATH ?= $(shell pwd)
-
-compile-simgrid:
-       cd $$GRAS_ROOT ; \
-       retrieved=`LANG=C;wget -N $(SIMGRID_URL)/simgrid-$(SIMGRID_VERSION).tar.gz 2>&1 | grep newer | sed 's/.*no newer.*/yes/'`; \
-       echo $$retrieved; \
-       if test "x$$retrieved" = x; then \
-         tar zxf simgrid-$(SIMGRID_VERSION).tar.gz ; \
-         cd simgrid-$(SIMGRID_VERSION)/; \
-         ./configure --prefix=$$GRAS_ROOT ; \
-         make all install ;\
-       fi
-
-compile-gras: compile-simgrid
-       not_retrieved=`LANG=C;wget -N $(GRAS_PROJECT_URL)/gras-$(GRAS_PROJECT).tar.gz 2>&1 | grep newer | sed 's/.*no newer.*/yes/'`; \
-       echo $$not_retrieved; \
-       if test "x$$not_retrieved" != xyes; then \
-         tar zxf gras-$(GRAS_PROJECT).tar.gz ; \
-         make -C gras-$(GRAS_PROJECT)/ -f $(GRAS_PROJECT).Makefile.local all ; \
-       fi
-
-clean-simgrid:
-       rm -rf simgrid-$(SIMGRID_VERSION)*
-clean-gras clean-gras-$(GRAS_PROJECT):
-       rm -rf gras-$(GRAS_PROJECT)*
-clean: clean-simgrid clean-gras-$(GRAS_PROJECT)
-
-.PHONY: clean clean-simgrid clean-gras clean-gras-$(GRAS_PROJECT) \
-        compile-simgrid compile-gras
diff --git a/examples/gras/alltoall/alltoall.deploy.sh b/examples/gras/alltoall/alltoall.deploy.sh
deleted file mode 100644 (file)
index 9ff1609..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-############ DEPLOYMENT FILE #########
-if test "${MACHINES+set}" != set; then 
-    export MACHINES='Bourassa Fafard Ginette Jupiter Tremblay ';
-fi
-if test "${INSTALL_PATH+set}" != set; then 
-    export INSTALL_PATH='`echo $HOME`/tmp/src'
-fi
-if test "${GRAS_ROOT+set}" != set; then 
-    export GRAS_ROOT='`echo $INSTALL_PATH`'
-fi
-if test "${SRCDIR+set}" != set; then 
-    export SRCDIR=./
-fi
-if test "${SIMGRID_URL+set}" != set; then 
-    export SIMGRID_URL=http://gcl.ucsd.edu/simgrid/dl/
-fi
-if test "${SIMGRID_VERSION+set}" != set; then 
-    export SIMGRID_VERSION=2.91
-fi
-if test "${GRAS_PROJECT+set}" != set; then 
-    export GRAS_PROJECT=alltoall
-fi
-if test "${GRAS_PROJECT_URL+set}" != set; then 
-    export GRAS_PROJECT_URL=http://www-id.imag.fr/Laboratoire/Membres/Legrand_Arnaud/gras_test/
-fi
-
-test -e runlogs/ || mkdir -p runlogs/
-cmd_prolog="env INSTALL_PATH=$INSTALL_PATH GRAS_ROOT=$GRAS_ROOT \
-                 SIMGRID_URL=$SIMGRID_URL SIMGRID_VERSION=$SIMGRID_VERSION GRAS_PROJECT=$GRAS_PROJECT \
-                 GRAS_PROJECT_URL=$GRAS_PROJECT_URL LD_LIBRARY_PATH=$GRAS_ROOT/lib/ sh -c ";
-cmd="\$INSTALL_PATH/gras-alltoall/alltoall_node 4000 Jupiter Fafard Ginette Bourassa ";
-ssh Tremblay "$cmd_prolog 'export LD_LIBRARY_PATH=\$INSTALL_PATH/lib:\$LD_LIBRARY_PATH; echo \"$cmd\" ; $cmd 2>&1'" > runlogs/Tremblay_0.log &
-cmd="\$INSTALL_PATH/gras-alltoall/alltoall_node 4000 Tremblay Fafard Ginette Bourassa ";
-ssh Jupiter "$cmd_prolog 'export LD_LIBRARY_PATH=\$INSTALL_PATH/lib:\$LD_LIBRARY_PATH; echo \"$cmd\" ; $cmd 2>&1'" > runlogs/Jupiter_1.log &
-cmd="\$INSTALL_PATH/gras-alltoall/alltoall_node 4000 Tremblay Jupiter Ginette Bourassa ";
-ssh Fafard "$cmd_prolog 'export LD_LIBRARY_PATH=\$INSTALL_PATH/lib:\$LD_LIBRARY_PATH; echo \"$cmd\" ; $cmd 2>&1'" > runlogs/Fafard_2.log &
-cmd="\$INSTALL_PATH/gras-alltoall/alltoall_node 4000 Tremblay Jupiter Fafard Bourassa ";
-ssh Ginette "$cmd_prolog 'export LD_LIBRARY_PATH=\$INSTALL_PATH/lib:\$LD_LIBRARY_PATH; echo \"$cmd\" ; $cmd 2>&1'" > runlogs/Ginette_3.log &
-cmd="\$INSTALL_PATH/gras-alltoall/alltoall_node 4000 Tremblay Jupiter Fafard Ginette ";
-ssh Bourassa "$cmd_prolog 'export LD_LIBRARY_PATH=\$INSTALL_PATH/lib:\$LD_LIBRARY_PATH; echo \"$cmd\" ; $cmd 2>&1'" > runlogs/Bourassa_4.log &
diff --git a/examples/gras/alltoall/test_rl b/examples/gras/alltoall/test_rl
deleted file mode 100755 (executable)
index f1eea58..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-#! /bin/sh -e
-if [ x = x ] ; then 
-#  exenv="libtool --mode=execute valgrind --show-reachable=yes --run-libc-freeres=no "
-  exenv=$SG_TEST_EXENV
-else
-  exenv=wine
-fi
-    
-$exenv ./ping_server 4002 $@ &
-sleep 1
-$exenv ./ping_client 127.0.0.1 4002 $@
diff --git a/examples/gras/alltoall/test_sg b/examples/gras/alltoall/test_sg
deleted file mode 100755 (executable)
index dc4d857..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-#! /bin/sh
-if [ x = x ] ; then 
-  exenv=$SG_TEST_EXENV
-else
-  exenv=wine
-fi
-
-exec $exenv ./alltoall_simulator ./small_platform.xml ./alltoall_deployment.xml $@
-