Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-orbit
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Katerina Roukounaki
cloud-orbit
Commits
8dc12860
Commit
8dc12860
authored
Jan 07, 2015
by
Aggelos Giantsios
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add arguments to run sequential orbit
parent
9ee48813
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
Bench.hs
Bench.hs
+12
-2
No files found.
Bench.hs
View file @
8dc12860
...
@@ -83,6 +83,14 @@ main :: IO ()
...
@@ -83,6 +83,14 @@ main :: IO ()
main
=
do
main
=
do
args
<-
getArgs
args
<-
getArgs
case
args
of
case
args
of
-- Sequential Orbit
[
"seq"
,
version
,
host
,
port
]
->
do
let
(
gnrt
,
n
)
=
bench_args
version
Right
t
<-
createTransport
host
port
defaultTCPParameters
node
<-
newLocalNode
t
rtable
runProcess
node
$
do
res
<-
seq
gnrt
n
liftIO
$
print
res
-- Parallel Orbit
-- Parallel Orbit
[
"par"
,
iwp
,
version
,
w
,
host
,
port
]
->
do
[
"par"
,
iwp
,
version
,
w
,
host
,
port
]
->
do
let
(
gnrt
,
n
)
=
bench_args
version
let
(
gnrt
,
n
)
=
bench_args
version
...
@@ -109,10 +117,12 @@ main = do
...
@@ -109,10 +117,12 @@ main = do
SLN
.
startSlave
b
SLN
.
startSlave
b
-- Invalid configuration
-- Invalid configuration
_
->
do
_
->
do
putStrLn
"Sequential Version"
putStrLn
"Usage: ./orbit seq [short|intermediate|long] host port"
putStrLn
"Paraller Version"
putStrLn
"Paraller Version"
putStrLn
"Usage: ./orbit par [True|False] [short|intermediat|long] nWorkers host port"
putStrLn
"Usage: ./orbit par [True|False] [short|intermediat
e
|long] nWorkers host port"
putStrLn
"Distributed Version [Master Node]"
putStrLn
"Distributed Version [Master Node]"
putStrLn
"Usage: ./orbit dist master [True|False] [short|intermediat|long] nWorkers host port"
putStrLn
"Usage: ./orbit dist master [True|False] [short|intermediat
e
|long] nWorkers host port"
putStrLn
"Distributed Version [Slave Node]"
putStrLn
"Distributed Version [Slave Node]"
putStrLn
"Usage: ./orbit dist slave host port"
putStrLn
"Usage: ./orbit dist slave host port"
where
rtable
::
RemoteTable
where
rtable
::
RemoteTable
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment