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
20e0876d
Commit
20e0876d
authored
6 years ago
by
Daniel Maier
Browse files
Options
Downloads
Patches
Plain Diff
update perforate.sh
parent
719273df
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
+76
-5
76 additions, 5 deletions
perforate.sh
with
76 additions
and
5 deletions
perforate.sh
+
76
−
5
View file @
20e0876d
#!/bin/sh
CLAN
=
/home/daniel/polyhedral_perforation/clan-0.8.0/clan
CLOOG
=
/home/daniel/polyhedral_perforation/pluto/cloog-isl/cloog
usage
()
{
printf
"%s: <input_program> <output_program>
\n
"
"
$0
"
}
if
[
$#
-ne
2
]
;
then
usage
extract_scop
()
{
$CLAN
"
$1
"
>
"
$2
"
}
perforate
()
{
if
[
-e
"
$1
.prepeforated"
]
;
then
cp
"
$1
.prepeforated"
"
$2
"
else
printf
"perforation not possible, missing %s
\n
"
"
$1
.prepeforated"
exit
1
fi
}
run_pluto
()
{
$PL
}
generate
()
{
$CLOOG
-openscop
"
$1
"
>
"
$2
"
}
output_src
=
"-"
while
true
;
do
case
"
$1
"
in
-h
|
--help
)
usage
exit
;;
-a
|
--all
)
cmd_extract
=
yes
cmd_perforate
=
yes
cmd_generate
=
yes
;;
-e
|
--extract
)
cmd_extract
=
yes
;;
-p
|
--perforate
)
cmd_perforate
=
yes
;;
-g
|
--generate
)
cmd_generate
=
yes
;;
-o
|
--output
)
shift
output_src
=
"
$1
"
;;
*
)
break
esac
shift
done
input_src
=
$1
scop
=
"
$input_src
.openscop"
perforated
=
"
$input_src
.perf.openscop"
if
[
"
$input_src
"
=
""
]
;
then
printf
"missing input
\n
"
exit
1
fi
input
=
"
$1
"
output
=
"
$2
"
if
[
"
$cmd_extract
"
=
"yes"
]
;
then
extract_scop
"
$input_src
"
"
$scop
"
fi
if
[
"
$cmd_perforate
"
=
"yes"
]
;
then
perforate
"
$scop
"
"
$perforated
"
fi
if
[
"
$cmd_generate
"
=
"yes"
]
;
then
generate
"
$perforated
"
"
$output_src
"
fi
printf
"input is
\"
%s
\"
output is
\"
%s
\"
"
"
$input
"
"
$output
"
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