Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Tobias Langer
/
experiment
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
dd0d71a4
authored
Nov 21, 2016
by
Tobias Langer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed utilization range argument.
parent
26cb37c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
11 deletions
+7
-11
run.py
+5
-4
tasksetgen.py
+2
-7
No files found.
run.py
View file @
dd0d71a4
...
@@ -33,10 +33,11 @@ def main():
...
@@ -33,10 +33,11 @@ def main():
remain
=
args
.
experiments
remain
=
args
.
experiments
while
remain
>
0
:
while
remain
>
0
:
if
args
.
utilization
is
not
None
:
if
args
.
utilization
is
not
None
:
subprocess
.
call
([
'./tasksetgen.py'
,
'--microseconds'
,
'--uniform'
,
'5'
,
utilization
=
'--utilization {} {}'
.
format
(
args
.
utilization
-
0.25
,
args
.
utilization
+
0.25
)
'--utilization {}:{}'
.
format
(
args
.
utilization
-
0.25
,
args
.
utilization
+
0.25
),
subprocess
.
call
([
'./tasksetgen.py'
,
'--microseconds'
,
'--utilization'
,
str
(
args
.
utilization
-
0.25
),
str
(
remain
),
'experiments/ese2016_{}'
.
format
(
cnt
),
str
(
args
.
utilization
+
0.25
),
'--uniform'
,
'5'
,
'experiment_data'
])
str
(
remain
),
'experiments/ese2016_{}'
.
format
(
cnt
),
'experiment_data'
])
else
:
else
:
subprocess
.
call
([
'./tasksetgen.py'
,
'--microseconds'
,
'--uniform'
,
'5'
,
subprocess
.
call
([
'./tasksetgen.py'
,
'--microseconds'
,
'--uniform'
,
'5'
,
str
(
remain
),
'experiments/ese2016_{}'
.
format
(
cnt
),
str
(
remain
),
'experiments/ese2016_{}'
.
format
(
cnt
),
...
...
tasksetgen.py
View file @
dd0d71a4
...
@@ -129,7 +129,7 @@ def main():
...
@@ -129,7 +129,7 @@ def main():
parser
.
add_argument
(
'experiment_target'
,
type
=
str
,
help
=
'Output directory for experiments.'
,
nargs
=
'?'
,
parser
.
add_argument
(
'experiment_target'
,
type
=
str
,
help
=
'Output directory for experiments.'
,
nargs
=
'?'
,
default
=
'.'
)
default
=
'.'
)
parser
.
add_argument
(
'--utili
ty'
,
type
=
str
,
help
=
'The utility for which tasksets should be generated. Is a range such as 2.5:3.5'
,
nargs
=
1
)
parser
.
add_argument
(
'--utili
zation'
,
type
=
float
,
help
=
'The utility for which tasksets should be generated. Is a range such as 2.5 3.5'
,
nargs
=
2
)
parser
.
add_argument
(
'--baseclock'
,
type
=
str
,
default
=
'system_clock'
,
parser
.
add_argument
(
'--baseclock'
,
type
=
str
,
default
=
'system_clock'
,
nargs
=
'?'
,
nargs
=
'?'
,
...
@@ -179,12 +179,7 @@ def main():
...
@@ -179,12 +179,7 @@ def main():
utility
=
None
utility
=
None
try
:
try
:
utility_val
=
args
.
utility
.
split
(
':'
)
utility
=
args
.
utilization
if
len
(
utility_val
>
3
):
print
(
'Invalid utility specified.'
,
file
=
sys
.
sterr
)
sys
.
exit
(
1
)
utility
=
[
float
(
util
)
for
util
in
utility_val
]
except
AttributeError
:
except
AttributeError
:
pass
pass
...
...
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