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
510f8e9f
Commit
510f8e9f
authored
Jan 14, 2015
by
Aggelos Giantsios
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Script to run the parallel orbit
parent
2597ba17
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
par.py
par.py
+36
-0
No files found.
par.py
0 → 100755
View file @
510f8e9f
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import
subprocess
,
time
reps
=
1
versions
=
[
"short"
,
"intermediate"
,
"long"
]
iwps
=
[
False
,
True
]
cores
=
[
1
,
2
,
4
]
workersPerCore
=
1
node
=
{
"host"
:
"127.0.0.1"
,
"port"
:
5050
}
print
"Parallel Orbit"
print
"----------------------------------------------------------------------"
print
"Versions:
%
s"
%
versions
print
"Parallel Image Computation:
%
s"
%
iwps
print
"Repetitions per Configuration:
%
s"
%
reps
print
"Using Cores:
%
s"
%
cores
print
"Workers Per Core:
%
s"
%
workersPerCore
print
"Node @
%
s"
%
node
print
"======================================================================"
for
iwp
in
iwps
:
for
vsn
in
versions
:
for
core
in
cores
:
for
rep
in
range
(
reps
):
workers
=
workersPerCore
*
core
print
"Version:
%
s, IWP:
%
s, Cores:
%
s, Workers:
%
s, Execution:
%
s"
%
(
vsn
,
iwp
,
core
,
workers
,
rep
)
t1
=
time
.
time
()
cmd
=
"./orbit +RTS -N
%
s -RTS par
%
s
%
s
%
s
%
s
%
s > /dev/null"
%
(
core
,
iwp
,
vsn
,
workers
,
node
[
"host"
],
node
[
"port"
])
p
=
subprocess
.
Popen
(
cmd
,
shell
=
True
)
p
.
wait
()
t2
=
time
.
time
()
print
"
%
s sec(s)"
%
(
t2
-
t1
)
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