Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
spec.py
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
IPDSnelting
spec.py
Commits
9029decf
Commit
9029decf
authored
Jan 25, 2018
by
Sebastian Graf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fakecc, fixing flags for perlbench_s and parallelbuilds by default
parent
186e4b9d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
fakecc.sh
fakecc.sh
+26
-0
spec.py
spec.py
+7
-0
No files found.
fakecc.sh
0 → 100755
View file @
9029decf
#!/usr/bin/env bash
# The actual binary we substitute is the first argument
BINARY
=
${
1
}
shift
# All other options are supplied by the calling context
while
test
$#
-gt
0
do
case
${
1
}
in
-c
)
# Compile artifacts - e.g. do nothing
exit
0
;;
-o
)
# Remember the outfile in case we link
shift
OUTFILE
=
${
1
}
;;
*
)
# Just ignore other options
;;
esac
shift
done
#echo ${BINARY}
#echo ${OUTFILE}
cp
${
BINARY
}
${
OUTFILE
}
spec.py
View file @
9029decf
...
...
@@ -78,6 +78,9 @@ parser.add_argument("--cpp-compiler-version-option", metavar="FLAG", default=["-
parser
.
add_argument
(
"--fortran-compiler-version-option"
,
metavar
=
"FLAG"
,
default
=
[
"--version"
],
action
=
"append"
,
help
=
"Flag that causes the FC to print its version, default=--version"
)
parser
.
add_argument
(
"-j"
,
"--jobs"
,
metavar
=
"N"
,
action
=
"append"
,
default
=
""
,
help
=
"The number of parallel build jobs, default: '' (unbounded degree of parallelism)"
)
parser
.
add_argument
(
"--compiler-args"
,
metavar
=
"FLAGS"
,
default
=
[
"-O3"
],
action
=
"append"
,
help
=
"Append FLAGS to build benchmark programs for all compilers, default=-O3"
)
parser
.
add_argument
(
"--c-compiler-args"
,
metavar
=
"CFLAGS"
,
default
=
[],
action
=
"append"
,
...
...
@@ -188,6 +191,8 @@ x86_64_flags["600.perlbench"] = "-DSPEC_LINUX_IA64"
for
bench
in
[
"400.perlbench"
,
"403.gcc"
,
"436.cactusADM"
,
"453.povray"
,
"481.wrf"
]:
x86_64_flags
[
bench
]
+=
" -DSPEC_CPU_LP64"
for
bench
in
[
"600.perlbench"
,
"603.gcc"
]:
x86_64_flags
[
bench
]
+=
" -DSPEC_LP64"
TARGET_ARCH_FLAGS
[
"x86_64"
]
=
x86_64_flags
sparc_flags
=
dict
()
...
...
@@ -492,6 +497,8 @@ def generate_spec_config(options, progs):
contents
.
append
(
"use_submit_for_speed = 1"
)
contents
.
append
(
"submit =
%
s"
%
submit
)
contents
.
append
(
""
)
contents
.
append
(
"makeflags = -j
%
s"
%
options
.
jobs
)
contents
.
append
(
"CC =
%
s"
%
options
.
c_compiler
)
contents
.
append
(
"CXX =
%
s"
%
options
.
cpp_compiler
)
contents
.
append
(
"FC =
%
s"
%
options
.
fortran_compiler
)
...
...
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