Commit eb061331 authored by Aggelos Giantsios's avatar Aggelos Giantsios

Document script that runs the parallel orbit

parent 72f118e5
...@@ -82,6 +82,30 @@ Python 2.x is needed in order to run the scripts. ...@@ -82,6 +82,30 @@ Python 2.x is needed in order to run the scripts.
node = {"host": "127.0.0.1", "port": 5050} node = {"host": "127.0.0.1", "port": 5050}
``` ```
- Parallel Orbit
```bash
python par.py
```
Variables that can be tweaked with their default values.
```python
# Path to the file that will hold the results.
fname = 'par.log'
# Number of repetitions per configuration.
reps = 1
# List of versions.
versions = ["short", "intermediate", "long"]
# Perform parallel image computations
iwps = [False, True]
# No of cores used
cores = [1,2,4,8,16]
# Ratio of No of workers to No of cores.
workersPerCore = 1
# Host information.
node = {"host": "127.0.0.1", "port": 5050}
```
Memory Profiling Memory Profiling
---------------- ----------------
......
...@@ -4,17 +4,25 @@ ...@@ -4,17 +4,25 @@
from __future__ import print_function from __future__ import print_function
import sys, subprocess, time import sys, subprocess, time
f = open('par.log', 'a+') # Path to the file that will hold the results.
fname = 'par.log'
f = open(fname, 'a+')
def print_all(s): def print_all(s):
print (s, file=f) print (s, file=f)
f.flush() f.flush()
print (s, file=sys.stdout) print (s, file=sys.stdout)
# Number of repetitions per configuration.
reps = 1 reps = 1
# List of versions.
versions = ["short", "intermediate", "long"] versions = ["short", "intermediate", "long"]
# Perform parallel image computations
iwps = [False, True] iwps = [False, True]
# No of cores used
cores = [1,2,4,8,16] cores = [1,2,4,8,16]
# Ratio of No of workers to No of cores.
workersPerCore = 1 workersPerCore = 1
# Host information.
node = {"host": "127.0.0.1", "port": 5050} node = {"host": "127.0.0.1", "port": 5050}
print_all("Parallel Orbit") print_all("Parallel Orbit")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment