Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
How Approximation Affects Parallelization
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nathanael Sandy
How Approximation Affects Parallelization
Commits
880e6d66
Commit
880e6d66
authored
6 years ago
by
Daniel Maier
Browse files
Options
Downloads
Patches
Plain Diff
perforate.sh: integrate pluto
parent
dd3db4d3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
perforate.sh
+15
-3
15 additions, 3 deletions
perforate.sh
with
15 additions
and
3 deletions
perforate.sh
+
15
−
3
View file @
880e6d66
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
CLAN
=
/home/daniel/polyhedral_perforation/clan-0.8.0/clan
CLAN
=
/home/daniel/polyhedral_perforation/clan-0.8.0/clan
PERF
=
./build/perf2
PERF
=
./build/perf2
CLOOG
=
/home/daniel/polyhedral_perforation/pluto/cloog-isl/cloog
CLOOG
=
/home/daniel/polyhedral_perforation/pluto/cloog-isl/cloog
PLUTO
=
/home/daniel/polyhedral_perforation/pluto/polycc
usage
()
{
usage
()
{
printf
--
"%s: <OPTIONS> <INPUT>
\n
"
"
$0
"
printf
--
"%s: <OPTIONS> <INPUT>
\n
"
"
$0
"
...
@@ -14,7 +15,7 @@ usage() {
...
@@ -14,7 +15,7 @@ usage() {
printf
--
"-g, --generate generate perforated program
\n
"
printf
--
"-g, --generate generate perforated program
\n
"
printf
--
"-s, --statement statement to perforate
\n
"
printf
--
"-s, --statement statement to perforate
\n
"
printf
--
"-l, --level level to perforate
\n
"
printf
--
"-l, --level level to perforate
\n
"
printf
--
"-P, --pluto run pluto
\n
"
}
}
extract_scop
()
{
extract_scop
()
{
...
@@ -26,7 +27,8 @@ perforate() {
...
@@ -26,7 +27,8 @@ perforate() {
}
}
run_pluto
()
{
run_pluto
()
{
$PL
# FIXME: what pluto options should be used?
$PLUTO
-o
"
$2
"
"
$1
"
}
}
generate
()
{
generate
()
{
...
@@ -48,6 +50,7 @@ while true; do
...
@@ -48,6 +50,7 @@ while true; do
cmd_extract
=
yes
cmd_extract
=
yes
cmd_perforate
=
yes
cmd_perforate
=
yes
cmd_generate
=
yes
cmd_generate
=
yes
cmd_pluto
=
yes
;;
;;
-e
|
--extract
)
-e
|
--extract
)
cmd_extract
=
yes
cmd_extract
=
yes
...
@@ -70,6 +73,9 @@ while true; do
...
@@ -70,6 +73,9 @@ while true; do
shift
shift
level
=
"
$1
"
level
=
"
$1
"
;;
;;
-P
|
--pluto
)
cmd_pluto
=
yes
;;
*
)
*
)
break
break
esac
esac
...
@@ -80,6 +86,7 @@ input_src=$1
...
@@ -80,6 +86,7 @@ input_src=$1
scop
=
"
$input_src
.openscop"
scop
=
"
$input_src
.openscop"
perforated
=
"
$input_src
.perf.openscop"
perforated
=
"
$input_src
.perf.openscop"
pluto_input
=
"
${
input_src
}
_pluto_input.c"
if
[
"
$input_src
"
=
""
]
;
then
if
[
"
$input_src
"
=
""
]
;
then
...
@@ -107,7 +114,12 @@ if [ "$cmd_perforate" = "yes" ]; then
...
@@ -107,7 +114,12 @@ if [ "$cmd_perforate" = "yes" ]; then
fi
fi
if
[
"
$cmd_generate
"
=
"yes"
]
;
then
if
[
"
$cmd_generate
"
=
"yes"
]
;
then
generate
"
$perforated
"
"
$output_src
"
generate
"
$perforated
"
"
$pluto_input
"
fi
if
[
"
$cmd_pluto
"
=
"yes"
]
;
then
printf
"running pluto on %s output %s
\n
"
"
$pluto_input
"
"
$output_src
"
run_pluto
"
$pluto_input
"
"
$output_src
"
fi
fi
printf
"input is
\"
%s
\"
output is
\"
%s
\"\n
"
"
$input_src
"
"
$output_src
"
printf
"input is
\"
%s
\"
output is
\"
%s
\"\n
"
"
$input_src
"
"
$output_src
"
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