[Swift-commit] r6366 - in SwiftTutorials/OSG_2013-03-11: . GS GS/conf

davidk at ci.uchicago.edu davidk at ci.uchicago.edu
Mon Mar 11 11:02:31 CDT 2013


Author: davidk
Date: 2013-03-11 11:02:30 -0500 (Mon, 11 Mar 2013)
New Revision: 6366

Added:
   SwiftTutorials/OSG_2013-03-11/GS/
   SwiftTutorials/OSG_2013-03-11/GS/GS.swift
   SwiftTutorials/OSG_2013-03-11/GS/Group_Simulation
   SwiftTutorials/OSG_2013-03-11/GS/clean.sh
   SwiftTutorials/OSG_2013-03-11/GS/conf/
   SwiftTutorials/OSG_2013-03-11/GS/conf/beagle-ssh.cf
   SwiftTutorials/OSG_2013-03-11/GS/conf/beagle.cf
   SwiftTutorials/OSG_2013-03-11/GS/conf/fusion.cf
   SwiftTutorials/OSG_2013-03-11/GS/conf/local-coasters.cf
   SwiftTutorials/OSG_2013-03-11/GS/conf/local.cf
   SwiftTutorials/OSG_2013-03-11/GS/conf/midway.cf
   SwiftTutorials/OSG_2013-03-11/GS/conf/raven.cf
   SwiftTutorials/OSG_2013-03-11/GS/conf/stampede.cf
   SwiftTutorials/OSG_2013-03-11/GS/run_GS.sh
Log:
GS example with script and executable staged in


Added: SwiftTutorials/OSG_2013-03-11/GS/GS.swift
===================================================================
--- SwiftTutorials/OSG_2013-03-11/GS/GS.swift	                        (rev 0)
+++ SwiftTutorials/OSG_2013-03-11/GS/GS.swift	2013-03-11 16:02:30 UTC (rev 6366)
@@ -0,0 +1,26 @@
+type file;
+
+app (file output) GS (float Tolerance_Ratio, int Dimensions, int Nagents, int RunNumber, file gs_binary, file gs_script)
+{
+  bash @filename(gs_script) Tolerance_Ratio Dimensions Nagents RunNumber @filename(gs_binary) stdout=@filename(output);
+}
+
+float [] tol_ratio=[0.40];
+int [] Dim=[1];
+int [] NA=[10];
+int [] repetitions = [1:1];
+
+file simulation_binary <"/scratch/midway/davidkelly999/GS/Group_Simulation">;
+file simulation_script <"/scratch/midway/davidkelly999/GS/run_GS.sh">;
+
+foreach Tol in tol_ratio {
+   foreach D in Dim {
+      foreach na in NA {
+          foreach rep in repetitions {
+              file outfile <single_file_mapper; file=@strcat("Tolerance_Ratio_",Tol,"/Dim_",D,"/NAgents_",na,"/",rep,".out")>;
+              outfile = GS (Tol, D, na, rep, simulation_binary, simulation_script);
+         }
+     }
+  }
+}
+

Added: SwiftTutorials/OSG_2013-03-11/GS/Group_Simulation
===================================================================
(Binary files differ)


Property changes on: SwiftTutorials/OSG_2013-03-11/GS/Group_Simulation
___________________________________________________________________
Added: svn:executable
   + *
Added: svn:mime-type
   + application/octet-stream

Added: SwiftTutorials/OSG_2013-03-11/GS/clean.sh
===================================================================
--- SwiftTutorials/OSG_2013-03-11/GS/clean.sh	                        (rev 0)
+++ SwiftTutorials/OSG_2013-03-11/GS/clean.sh	2013-03-11 16:02:30 UTC (rev 6366)
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+rm -rf run*/


Property changes on: SwiftTutorials/OSG_2013-03-11/GS/clean.sh
___________________________________________________________________
Added: svn:executable
   + *

Added: SwiftTutorials/OSG_2013-03-11/GS/conf/beagle-ssh.cf
===================================================================
--- SwiftTutorials/OSG_2013-03-11/GS/conf/beagle-ssh.cf	                        (rev 0)
+++ SwiftTutorials/OSG_2013-03-11/GS/conf/beagle-ssh.cf	2013-03-11 16:02:30 UTC (rev 6366)
@@ -0,0 +1,16 @@
+wrapperlog.always.transfer=true
+sitedir.keep=true
+execution.retries=0
+status.mode=provider
+use.provider.staging=true
+provider.staging.pin.swiftfiles=false
+
+#site beagle-ssh WALLTIME=00:05:00
+
+#app getlanduse=/lustre/beagle/davidk/modis/bin/getlanduse.sh
+#app analyzelanduse=/lustre/beagle/davidk/modis/bin/analyzelanduse.sh
+#app colormodis=/lustre/beagle/davidk/modis/bin/colormodis.sh
+#app assemble=/lustre/beagle/davidk/modis/bin/assemble.sh
+#app markmap=/lustre/beagle/davidk/modis/bin/markmap.sh
+#app echo=/bin/echo
+#app perl=/usr/bin/perl

Added: SwiftTutorials/OSG_2013-03-11/GS/conf/beagle.cf
===================================================================
--- SwiftTutorials/OSG_2013-03-11/GS/conf/beagle.cf	                        (rev 0)
+++ SwiftTutorials/OSG_2013-03-11/GS/conf/beagle.cf	2013-03-11 16:02:30 UTC (rev 6366)
@@ -0,0 +1,15 @@
+wrapperlog.always.transfer=true
+sitedir.keep=true
+execution.retries=0
+status.mode=provider
+use.provider.staging=false
+provider.staging.pin.swiftfiles=false
+
+#site beagle WALLTIME=00:05:00
+
+#app getlanduse=$PWD/../bin/getlanduse.sh
+#app analyzelanduse=$PWD/../bin/analyzelanduse.sh
+#app colormodis=$PWD/../bin/colormodis.sh
+#app assemble=$PWD/../bin/assemble.sh
+#app markmap=$PWD/../bin/markmap.sh
+#app echo=/bin/echo

Added: SwiftTutorials/OSG_2013-03-11/GS/conf/fusion.cf
===================================================================
--- SwiftTutorials/OSG_2013-03-11/GS/conf/fusion.cf	                        (rev 0)
+++ SwiftTutorials/OSG_2013-03-11/GS/conf/fusion.cf	2013-03-11 16:02:30 UTC (rev 6366)
@@ -0,0 +1,14 @@
+wrapperlog.always.transfer=true
+sitedir.keep=true
+execution.retries=0
+lazy.errors=false
+status.mode=provider
+use.provider.staging=false
+provider.staging.pin.swiftfiles=false
+
+#app getlanduse=$PWD/../bin/getlanduse.sh
+#app analyzelanduse=$PWD/../bin/analyzelanduse.sh
+#app colormodis=$PWD/../bin/colormodis.sh
+#app assemble=$PWD/../bin/assemble.sh
+#app markmap=$PWD/../bin/markmap.sh
+#app echo=/bin/echo

Added: SwiftTutorials/OSG_2013-03-11/GS/conf/local-coasters.cf
===================================================================
--- SwiftTutorials/OSG_2013-03-11/GS/conf/local-coasters.cf	                        (rev 0)
+++ SwiftTutorials/OSG_2013-03-11/GS/conf/local-coasters.cf	2013-03-11 16:02:30 UTC (rev 6366)
@@ -0,0 +1,15 @@
+wrapperlog.always.transfer=true
+sitedir.keep=true
+execution.retries=0
+lazy.errors=false
+status.mode=provider
+use.provider.staging=false
+provider.staging.pin.swiftfiles=false
+#site local-coasters JOBTHROTTLE=0.038
+
+#app getlanduse=$PWD/../bin/getlanduse.sh
+#app analyzelanduse=$PWD/../bin/analyzelanduse.sh
+#app colormodis=$PWD/../bin/colormodis.sh
+#app assemble=$PWD/../bin/assemble.sh
+#app markmap=$PWD/../bin/markmap.sh
+#app echo=/bin/echo

Added: SwiftTutorials/OSG_2013-03-11/GS/conf/local.cf
===================================================================
--- SwiftTutorials/OSG_2013-03-11/GS/conf/local.cf	                        (rev 0)
+++ SwiftTutorials/OSG_2013-03-11/GS/conf/local.cf	2013-03-11 16:02:30 UTC (rev 6366)
@@ -0,0 +1,10 @@
+wrapperlog.always.transfer=true
+sitedir.keep=true
+execution.retries=5
+lazy.errors=false
+status.mode=provider
+use.provider.staging=false
+provider.staging.pin.swiftfiles=false
+
+#site local JOBTHROTTLE=0.038
+#app bash=/bin/bash

Added: SwiftTutorials/OSG_2013-03-11/GS/conf/midway.cf
===================================================================
--- SwiftTutorials/OSG_2013-03-11/GS/conf/midway.cf	                        (rev 0)
+++ SwiftTutorials/OSG_2013-03-11/GS/conf/midway.cf	2013-03-11 16:02:30 UTC (rev 6366)
@@ -0,0 +1,13 @@
+wrapperlog.always.transfer=true
+sitedir.keep=true
+execution.retries=0
+lazy.errors=false
+status.mode=provider
+use.provider.staging=false
+provider.staging.pin.swiftfiles=false
+
+#site midway WALLTIME=00:05:00
+
+#app bash=/bin/bash
+#app perl=/usr/bin/perl
+

Added: SwiftTutorials/OSG_2013-03-11/GS/conf/raven.cf
===================================================================
--- SwiftTutorials/OSG_2013-03-11/GS/conf/raven.cf	                        (rev 0)
+++ SwiftTutorials/OSG_2013-03-11/GS/conf/raven.cf	2013-03-11 16:02:30 UTC (rev 6366)
@@ -0,0 +1,15 @@
+wrapperlog.always.transfer=true
+sitedir.keep=true
+execution.retries=0
+status.mode=provider
+use.provider.staging=false
+provider.staging.pin.swiftfiles=false
+
+#site raven PROJECT=CI-SES000031
+
+#app getlanduse=$PWD/../bin/getlanduse.sh
+#app analyzelanduse=$PWD/../bin/analyzelanduse.sh
+#app colormodis=$PWD/../bin/colormodis.sh
+#app assemble=$PWD/../bin/assemble.sh
+#app markmap=$PWD/../bin/markmap.sh
+#app echo=/bin/echo

Added: SwiftTutorials/OSG_2013-03-11/GS/conf/stampede.cf
===================================================================
--- SwiftTutorials/OSG_2013-03-11/GS/conf/stampede.cf	                        (rev 0)
+++ SwiftTutorials/OSG_2013-03-11/GS/conf/stampede.cf	2013-03-11 16:02:30 UTC (rev 6366)
@@ -0,0 +1,17 @@
+wrapperlog.always.transfer=true
+sitedir.keep=true
+execution.retries=1
+lazy.errors=true
+status.mode=provider
+use.provider.staging=false
+provider.staging.pin.swiftfiles=false
+
+#site stampede WALLTIME=00:15:00
+
+#app getlanduse=$PWD/../bin/getlanduse.sh
+#app analyzelanduse=$PWD/../bin/analyzelanduse.sh
+#app colormodis=$PWD/../bin/colormodis.sh
+#app assemble=$PWD/../bin/assemble.sh
+#app markmap=$PWD/../bin/markmap.sh
+#app echo=/bin/echo
+

Added: SwiftTutorials/OSG_2013-03-11/GS/run_GS.sh
===================================================================
--- SwiftTutorials/OSG_2013-03-11/GS/run_GS.sh	                        (rev 0)
+++ SwiftTutorials/OSG_2013-03-11/GS/run_GS.sh	2013-03-11 16:02:30 UTC (rev 6366)
@@ -0,0 +1,19 @@
+#!/bin/bash
+Tolerance_Ratio=$1 
+Dimensions=$2
+Nagents=$3  
+Run_Number=$4
+executable=$5
+
+#define rarely changing variables
+Groups=0
+debug=0
+Output="grouping"
+stopAt=1000
+
+rundirname="Tolerance_Ratio_"${Tolerance_Ratio}/"Dim_"${Dimensions}/"NAgents_"$Nagents
+chmod +x $executable
+
+START=$SECONDS
+$executable $Tolerance_Ratio $Dimensions $Nagents $stopAt $Groups $Run_Number $debug $Output 2>&1
+echo $(( $SECONDS - $START )) 1>&2


Property changes on: SwiftTutorials/OSG_2013-03-11/GS/run_GS.sh
___________________________________________________________________
Added: svn:executable
   + *




More information about the Swift-commit mailing list