adding original examples
This commit is contained in:
46
examples/drmaa/ruby/flow/samples/README
Executable file
46
examples/drmaa/ruby/flow/samples/README
Executable file
@@ -0,0 +1,46 @@
|
||||
== Sample flowfiles
|
||||
|
||||
The samples comprise four different flowfiles
|
||||
|
||||
* tiny.ff (one single job)
|
||||
* small.ff (29 jobs)
|
||||
* large.ff (780 jobs)
|
||||
* huge.ff (>40000 jobs)
|
||||
|
||||
== Sample jobs
|
||||
|
||||
The flow require a number of job scripts
|
||||
|
||||
* do_make
|
||||
* do_test
|
||||
* do_inst
|
||||
* do_uninst
|
||||
* do_final
|
||||
* do_report
|
||||
|
||||
each of which simply does a sleep.
|
||||
|
||||
== Pre-submission procedure
|
||||
|
||||
In addition a sample .flowrc.rb file can be found. Besides
|
||||
a couple of parameters it contains a pre-submission procedure.
|
||||
|
||||
== Assumptions according the DRM setup
|
||||
|
||||
Note: For running the flows it is necessary to configure
|
||||
the DRM in a way that
|
||||
|
||||
-q gridware.q
|
||||
-q irix.q
|
||||
-q solaris.q
|
||||
-q linux.q
|
||||
-q darwin.q
|
||||
|
||||
and
|
||||
|
||||
-P fast (.flowrc.rb)
|
||||
|
||||
can be passed as "nat" (i.e. "drmaa_native_specification").
|
||||
|
||||
Yet as a matter of course the set-up requirements easily can
|
||||
be changed, if the sample files are modified accordingly.
|
||||
8
examples/drmaa/ruby/flow/samples/do_final
Executable file
8
examples/drmaa/ruby/flow/samples/do_final
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
me=`basename $0`
|
||||
echo "# -- args $* -- #"
|
||||
echo "# -- starting $me -- #"
|
||||
sleep 1
|
||||
ret=$?
|
||||
echo "# -- finished $me -- #"
|
||||
exit $ret
|
||||
8
examples/drmaa/ruby/flow/samples/do_inst
Executable file
8
examples/drmaa/ruby/flow/samples/do_inst
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
me=`basename $0`
|
||||
echo "# -- args $* -- #"
|
||||
echo "# -- starting $me -- #"
|
||||
sleep $1
|
||||
ret=$?
|
||||
echo "# -- finished $me -- #"
|
||||
exit $ret
|
||||
8
examples/drmaa/ruby/flow/samples/do_make
Executable file
8
examples/drmaa/ruby/flow/samples/do_make
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
me=`basename $0`
|
||||
echo "# -- args $* -- #"
|
||||
echo "# -- starting $me -- #"
|
||||
sleep 1
|
||||
ret=$?
|
||||
echo "# -- finished $me -- #"
|
||||
exit $ret
|
||||
8
examples/drmaa/ruby/flow/samples/do_report
Executable file
8
examples/drmaa/ruby/flow/samples/do_report
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
me=`basename $0`
|
||||
echo "# -- args $* -- #"
|
||||
echo "# -- starting $me -- #"
|
||||
sleep 1
|
||||
ret=$?
|
||||
echo "# -- finished $me -- #"
|
||||
exit $ret
|
||||
8
examples/drmaa/ruby/flow/samples/do_test
Executable file
8
examples/drmaa/ruby/flow/samples/do_test
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
me=`basename $0`
|
||||
echo "# -- args $* -- #"
|
||||
echo "# -- starting $me -- #"
|
||||
sleep 1
|
||||
ret=$?
|
||||
echo "# -- finished $me -- #"
|
||||
exit $ret
|
||||
8
examples/drmaa/ruby/flow/samples/do_uninst
Executable file
8
examples/drmaa/ruby/flow/samples/do_uninst
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
me=`basename $0`
|
||||
echo "# -- args $* -- #"
|
||||
echo "# -- starting $me -- #"
|
||||
sleep $1
|
||||
ret=$?
|
||||
echo "# -- finished $me -- #"
|
||||
exit $ret
|
||||
36
examples/drmaa/ruby/flow/samples/huge.ff
Executable file
36
examples/drmaa/ruby/flow/samples/huge.ff
Executable file
@@ -0,0 +1,36 @@
|
||||
# ------------------------------------------------------------------------------------------
|
||||
ALL = ALLFLOWS | REPORT
|
||||
ALLFLOWS = FLOW($arch=solaris) & FLOW($arch=linux) & FLOW($arch=irix) & FLOW($arch=darwin)
|
||||
FLOW = BUILD | INST | TESTS | FINAL
|
||||
# ------------------------------------------------------------------------------------------
|
||||
BUILD = { cmd=do_make, nat=-q $arch.q, args= 5 }
|
||||
INST = { cmd=do_inst, nat=-q gridware.q, args=4 -local -bin $arch, name=I$arch }
|
||||
TESTS = SEVEN & SEVEN & SEVEN & SEVEN
|
||||
SEVEN = DAY($day=mon) & DAY($day=tue) & DAY($day=wed) & DAY($day=thu) & DAY($day=fri) & DAY($day=sat) & DAY($day=sun)
|
||||
DAY = T & T & T & T
|
||||
T = S1 & S2 & S3 & S4 & S1 & S2 & S3 & S4
|
||||
S1 = TT1 | TT2 | TT3
|
||||
S2 = TT1 | TT2 | TT3
|
||||
S3 = TT1 | TT2 | TT3
|
||||
S4 = TT1 | TT2 | TT3
|
||||
TT1 = T1 & T2 & T3 & T4
|
||||
TT2 = T1 & T2 & T3 & T4
|
||||
TT3 = T1 & T2 & T3 & T4
|
||||
TT4 = T1 & T2 & T3 & T4
|
||||
TT5 = T1 & T2 & T3 & T4
|
||||
T1 = { cmd=do_test, nat= -q $arch.q, args=1, args=$day }
|
||||
T2 = { cmd=do_test, nat= -q $arch.q, args=2, args=$day }
|
||||
T3 = { cmd=do_test, nat= -q $arch.q, args=3, args=$day }
|
||||
T4 = { cmd=do_test, nat= -q $arch.q, args=4, args=$day }
|
||||
FINAL = { cmd=do_final, nat=-q $arch.q, name=FIN$arch }
|
||||
# ------------------------------------------------------------------------------------------
|
||||
REPORT = LANG($whom=engineering) & LANG($whom=markting) & LANG($whom=sales)
|
||||
LANG = RR1($lang=ger) & RR2($lang=eng) & RR3($lang=jap)
|
||||
RR1 = R1($size=1G) | R2($size=2G) | R3($size=4G)
|
||||
RR2 = R1($size=1G) | R2($size=2G) | R3($size=4G)
|
||||
RR3 = R1($size=1G) | R2($size=2G) | R3($size=4G)
|
||||
R1 = R($format=html) & R($format=wiki) & R($format=pdf) & R($format=soffice )
|
||||
R2 = R($format=html) & R($format=wiki) & R($format=pdf) & R($format=soffice )
|
||||
R3 = R($format=html) & R($format=wiki) & R($format=pdf) & R($format=soffice )
|
||||
R = { cmd=do_report, nat=-q gridware.q, args=$lang $size $format }
|
||||
# ------------------------------------------------------------------------------------------
|
||||
21
examples/drmaa/ruby/flow/samples/large.ff
Executable file
21
examples/drmaa/ruby/flow/samples/large.ff
Executable file
@@ -0,0 +1,21 @@
|
||||
# ------------------------------------------------------------------------------------------
|
||||
ALL = FLOW($arch=solaris) & FLOW($arch=linux) & FLOW($arch=irix) & FLOW($arch=darwin)
|
||||
FLOW = BUILD | INST | TESTS | FINAL
|
||||
TESTS = T & T & T & T
|
||||
T = S1 & S2 & S3 & S4
|
||||
S1 = TT1 | TT2 | TT3
|
||||
S2 = TT1 | TT2 | TT3
|
||||
S3 = TT1 | TT2 | TT3
|
||||
S4 = TT1 | TT2 | TT3
|
||||
TT1 = T1 & T2 & T3 & T4
|
||||
TT2 = T1 & T2 & T3 & T4
|
||||
TT3 = T1 & T2 & T3 & T4
|
||||
# ------------------------------------------------------------------------------------------
|
||||
BUILD = { cmd=do_make, nat=-q $arch.q, args=5 }
|
||||
INST = { cmd=do_inst, nat = -q gridware.q, args=1 -local -bin $arch, name=I$arch }
|
||||
FINAL = { cmd=do_final, name=FIN$arch, args=1 }
|
||||
T1 = { cmd=do_test, nat= -q $arch.q, args=1 }
|
||||
T2 = { cmd=do_test, nat= -q $arch.q, args=2 }
|
||||
T3 = { cmd=do_test, nat= -q $arch.q, args=3 }
|
||||
T4 = { cmd=do_test, nat= -q $arch.q, args=4 }
|
||||
# ------------------------------------------------------------------------------------------
|
||||
15
examples/drmaa/ruby/flow/samples/small.ff
Executable file
15
examples/drmaa/ruby/flow/samples/small.ff
Executable file
@@ -0,0 +1,15 @@
|
||||
# ------------------------------------------------------------------------------------------
|
||||
ALL = ALLFLOWS | REPORT
|
||||
# ------------------------------------------------------------------------------------------
|
||||
ALLFLOWS = FLOW($arch=darwin) & FLOW($arch=linux) & FLOW($arch=irix) & FLOW($arch=solaris)
|
||||
FLOW = BUILD | INST | TESTS | FINAL
|
||||
TESTS = T1 & T2 & T3 & T4
|
||||
# ------------------------------------------------------------------------------------------
|
||||
BUILD = { cmd=do_make, nat=-q $arch.q, args=5 }
|
||||
INST = { cmd=do_inst, nat=-q gridware.q, args=1 -local -bin $arch, name=I$arch }
|
||||
FINAL = { cmd=do_uninst, nat=-q $arch.q, args=1, name=FIN$arch }
|
||||
T1 = { cmd=do_test, nat = -q $arch.q, args = 1 }
|
||||
T2 = { cmd=do_test, nat = -q $arch.q, args = 2 }
|
||||
T3 = { cmd=do_test, nat = -q $arch.q, args = 3 }
|
||||
T4 = { cmd=do_test, nat = -q $arch.q, args = 4 }
|
||||
REPORT = { cmd=do_report }
|
||||
1
examples/drmaa/ruby/flow/samples/tiny.ff
Executable file
1
examples/drmaa/ruby/flow/samples/tiny.ff
Executable file
@@ -0,0 +1 @@
|
||||
TEST = {cmd=do_test, args=-w 15}
|
||||
Reference in New Issue
Block a user