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
85c1a1ab
Commit
85c1a1ab
authored
6 years ago
by
Daniel Maier
Browse files
Options
Downloads
Patches
Plain Diff
perforate.sh: pluto
parent
d4bdef74
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
+17
-2
17 additions, 2 deletions
perforate.sh
with
17 additions
and
2 deletions
perforate.sh
+
17
−
2
View file @
85c1a1ab
...
...
@@ -16,6 +16,7 @@ usage() {
printf
--
"-s, --statement statement to perforate
\n
"
printf
--
"-l, --level level to perforate
\n
"
printf
--
"-P, --pluto run pluto
\n
"
printf
--
"--parallelize pluto parallelize
\n
"
}
extract_scop
()
{
...
...
@@ -27,8 +28,15 @@ perforate() {
}
run_pluto
()
{
if
[
"
$1
"
=
"yes"
]
;
then
args
=
"--parallelize"
shift
else
args
=
""
fi
# FIXME: what pluto options should be used?
$PLUTO
-o
"
$2
"
"
$1
"
>
/dev/null
$PLUTO
"
$args
"
-o
"
$2
"
"
$1
"
>
/dev/null
}
generate
()
{
...
...
@@ -76,6 +84,9 @@ while true; do
-P
|
--pluto
)
cmd_pluto
=
yes
;;
--parallelize
)
cmd_pluto_parallelize
=
yes
;;
*
)
break
esac
...
...
@@ -125,7 +136,11 @@ fi
if
[
"
$cmd_pluto
"
=
"yes"
]
;
then
printf
"running pluto on %s output %s
\n
"
"
$pluto_input
"
"
$output_src
"
run_pluto
"
$pluto_input
"
"
$output_src
"
if
[
"
$cmd_pluto_parallelize
"
=
"yes"
]
;
then
run_pluto
--parallelize
"
$pluto_input
"
"
$output_src
"
else
run_pluto
"
$pluto_input
"
"
$output_src
"
fi
elif
[
"
$cmd_generate
"
=
"yes"
]
;
then
# no pluto, just copy to output_src
cat
"
$pluto_input
"
>
"
$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