Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-codegen
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Christian Heinigk
dune-codegen
Commits
fd7ebff4
Commit
fd7ebff4
authored
7 years ago
by
Marcel Koch
Browse files
Options
Downloads
Patches
Plain Diff
remove CInstructions temporarily for lp.extract_subst
parent
7e34e464
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
python/dune/perftool/blockstructured/vectorization.py
+12
-6
12 additions, 6 deletions
python/dune/perftool/blockstructured/vectorization.py
test/blockstructured/poisson/poisson_vec.mini
+0
-2
0 additions, 2 deletions
test/blockstructured/poisson/poisson_vec.mini
with
12 additions
and
8 deletions
python/dune/perftool/blockstructured/vectorization.py
+
12
−
6
View file @
fd7ebff4
...
@@ -232,17 +232,23 @@ def add_vcl_access(knl, iname_inner):
...
@@ -232,17 +232,23 @@ def add_vcl_access(knl, iname_inner):
vector_alias
=
[
a
for
a
in
knl
.
arg_dict
if
a
.
endswith
(
'
alias
'
)]
vector_alias
=
[
a
for
a
in
knl
.
arg_dict
if
a
.
endswith
(
'
alias
'
)]
dim
=
world_dimension
()
dim
=
world_dimension
()
dim_names
=
[
"
x
"
,
"
y
"
,
"
z
"
]
+
[
str
(
i
)
for
i
in
range
(
4
,
dim
+
1
)]
dim_names
=
[
"
x
"
,
"
y
"
,
"
z
"
]
+
[
str
(
i
)
for
i
in
range
(
4
,
dim
+
1
)]
knl_without_cinsn
=
knl
.
copy
(
instructions
=
[
insn
for
insn
in
knl
.
instructions
if
not
isinstance
(
insn
,
lp
.
CInstruction
)])
for
alias
in
vector_alias
:
for
alias
in
vector_alias
:
parameters
=
'
ex_o,ex_i,
'
+
'
,
'
.
join
([
'
e
'
+
d
for
d
in
dim_names
[
1
:
dim
]])
+
'
,ix,
'
+
'
,
'
.
join
([
'
i
'
+
d
for
d
in
dim_names
[
1
:
dim
]])
parameters
=
'
ex_o,ex_i,
'
+
'
,
'
.
join
([
'
e
'
+
d
for
d
in
dim_names
[
1
:
dim
]])
\
knl
=
lp
.
extract_subst
(
knl
,
alias
+
'
_subst
'
,
'
{}[{}]
'
.
format
(
alias
,
parameters
),
+
'
,ix,
'
+
'
,
'
.
join
([
'
i
'
+
d
for
d
in
dim_names
[
1
:
dim
]])
parameters
=
parameters
)
knl_without_cinsn
=
lp
.
extract_subst
(
knl_without_cinsn
,
alias
+
'
_subst
'
,
'
{}[{}]
'
.
format
(
alias
,
parameters
),
new_subst
=
knl
.
substitutions
.
copy
()
parameters
=
parameters
)
new_subst
=
knl_without_cinsn
.
substitutions
.
copy
()
rule
=
new_subst
[
alias
+
'
_subst
'
]
rule
=
new_subst
[
alias
+
'
_subst
'
]
rule
.
expression
=
prim
.
Subscript
(
prim
.
Variable
(
alias
.
replace
(
'
alias
'
,
'
vec
'
)),
(
prim
.
Variable
(
'
ex_i
'
),))
rule
.
expression
=
prim
.
Subscript
(
prim
.
Variable
(
alias
.
replace
(
'
alias
'
,
'
vec
'
)),
(
prim
.
Variable
(
'
ex_i
'
),))
knl
=
knl
.
copy
(
substitutions
=
new_subst
)
knl
_without_cinsn
=
knl_without_cinsn
.
copy
(
substitutions
=
new_subst
)
from
loopy.match
import
All
from
loopy.match
import
All
knl
=
lp
.
expand_subst
(
knl
,
All
())
knl_without_cinsn
=
lp
.
expand_subst
(
knl_without_cinsn
,
All
())
knl
=
knl_without_cinsn
.
copy
(
instructions
=
knl_without_cinsn
.
instructions
+
[
insn
for
insn
in
knl
.
instructions
if
isinstance
(
insn
,
lp
.
CInstruction
)])
# add store and load dependencies and set right accumulation assignee
# add store and load dependencies and set right accumulation assignee
new_insns
=
[]
new_insns
=
[]
...
...
This diff is collapsed.
Click to expand it.
test/blockstructured/poisson/poisson_vec.mini
+
0
−
2
View file @
fd7ebff4
...
@@ -15,5 +15,3 @@ blockstructured = 1
...
@@ -15,5 +15,3 @@ blockstructured = 1
number_of_blocks = 16
number_of_blocks = 16
vectorization_blockstructured = 1
vectorization_blockstructured = 1
matrix_free = 1
matrix_free = 1
opcounter = 1
time_opcounter = 0
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