Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
allocbench
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Fischer
allocbench
Commits
03e62e63
Commit
03e62e63
authored
May 8, 2019
by
Florian Fischer
Browse files
Options
Downloads
Patches
Plain Diff
fix some hints from flake8
parent
cdfd77af
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
bench.py
+8
-8
8 additions, 8 deletions
bench.py
with
8 additions
and
8 deletions
bench.py
+
8
−
8
View file @
03e62e63
...
@@ -30,10 +30,10 @@ parser.add_argument("-rd", "--resultdir", help="directory where all results go",
...
@@ -30,10 +30,10 @@ parser.add_argument("-rd", "--resultdir", help="directory where all results go",
parser
.
add_argument
(
"
--license
"
,
help
=
"
print license info and exit
"
,
action
=
'
store_true
'
)
parser
.
add_argument
(
"
--license
"
,
help
=
"
print license info and exit
"
,
action
=
'
store_true
'
)
"""
Run tasks on exit
"""
def
epilog
():
def
epilog
():
"""
Run tasks on exit
"""
# After early errors resdir may not be set
# After early errors resdir may not be set
if
src
.
globalvars
.
resdir
!=
None
:
if
src
.
globalvars
.
resdir
is
not
None
:
if
os
.
listdir
(
src
.
globalvars
.
resdir
)
==
[]:
if
os
.
listdir
(
src
.
globalvars
.
resdir
)
==
[]:
print_warn
(
"
Remove empty resultdir
"
)
print_warn
(
"
Remove empty resultdir
"
)
os
.
removedirs
(
src
.
globalvars
.
resdir
)
os
.
removedirs
(
src
.
globalvars
.
resdir
)
...
@@ -44,6 +44,7 @@ def epilog():
...
@@ -44,6 +44,7 @@ def epilog():
with
open
(
os
.
path
.
join
(
src
.
globalvars
.
resdir
,
"
facts.save
"
),
"
wb
"
)
as
f
:
with
open
(
os
.
path
.
join
(
src
.
globalvars
.
resdir
,
"
facts.save
"
),
"
wb
"
)
as
f
:
pickle
.
dump
(
src
.
globalvars
.
facts
,
f
)
pickle
.
dump
(
src
.
globalvars
.
facts
,
f
)
def
main
():
def
main
():
args
=
parser
.
parse_args
()
args
=
parser
.
parse_args
()
if
args
.
license
:
if
args
.
license
:
...
@@ -138,7 +139,7 @@ def main():
...
@@ -138,7 +139,7 @@ def main():
cwd
=
os
.
getcwd
()
cwd
=
os
.
getcwd
()
for
bench
in
src
.
globalvars
.
benchmarks
:
for
bench
in
src
.
globalvars
.
benchmarks
:
if
args
.
benchmarks
and
not
bench
in
args
.
benchmarks
:
if
args
.
benchmarks
and
bench
not
in
args
.
benchmarks
:
continue
continue
if
args
.
analyse
or
not
args
.
nosum
:
if
args
.
analyse
or
not
args
.
nosum
:
...
@@ -160,7 +161,6 @@ def main():
...
@@ -160,7 +161,6 @@ def main():
if
find_cmd
(
"
malt
"
)
is
not
None
:
if
find_cmd
(
"
malt
"
)
is
not
None
:
print_status
(
"
Analysing {} ...
"
.
format
(
bench
))
print_status
(
"
Analysing {} ...
"
.
format
(
bench
))
malt_cmd
=
"
malt -o output:name={}/malt.{}.%3
"
malt_cmd
=
"
malt -o output:name={}/malt.{}.%3
"
malt_cmd
=
malt_cmd
.
format
(
bench_res_dir
,
"
{perm}
"
)
malt_cmd
=
malt_cmd
.
format
(
bench_res_dir
,
"
{perm}
"
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment