Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
IPDSnelting
spec.py
Commits
df564994
Commit
df564994
authored
Sep 08, 2010
by
Andreas Zwinkau
Browse files
identify SPEC OMP2001
parent
eb9b52fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
spec.py
View file @
df564994
...
@@ -24,11 +24,12 @@ for filename in "shrc README LICENSE MANIFEST".split():
...
@@ -24,11 +24,12 @@ for filename in "shrc README LICENSE MANIFEST".split():
def
identify_suite
():
def
identify_suite
():
"""Which SPEC suite are we in?"""
"""Which SPEC suite are we in?"""
for
line
in
file
(
"README"
):
for
line
in
file
(
"README"
):
possibilities
=
[
"SPEC CPU2000"
,
"SPEC CPU2006"
]
possibilities
=
[
"SPEC CPU2000"
,
"SPEC CPU2006"
,
"SPEC OMP2001"
]
if
line
.
startswith
(
"---"
):
break
for
p
in
possibilities
:
for
p
in
possibilities
:
if
p
in
line
:
if
p
in
line
:
return
p
return
p
print
"Unknown SPEC suite (if at all)"
print
"
Error:
Unknown SPEC suite (if at all)"
exit
(
-
1
)
exit
(
-
1
)
SPEC_SUITE
=
identify_suite
()
SPEC_SUITE
=
identify_suite
()
...
...
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