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
27383643
Commit
27383643
authored
8 years ago
by
Dominic Kempf
Browse files
Options
Downloads
Patches
Plain Diff
Remove large parts of loopy vectorization checker
It is not (yet!) suitable for our needs.
parent
3049d1fd
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
patches/loopy/Current.patch
+51
-7
51 additions, 7 deletions
patches/loopy/Current.patch
python/dune/perftool/sumfact/sumfact.py
+1
-1
1 addition, 1 deletion
python/dune/perftool/sumfact/sumfact.py
with
52 additions
and
8 deletions
patches/loopy/Current.patch
+
51
−
7
View file @
27383643
From
d75091179a72f10c110276720355dbf82ed33ef3
Mon Sep 17 00:00:00 2001
From
87331320981ca8f7419f32b48609e6dc465bbfff
Mon Sep 17 00:00:00 2001
From: Dominic Kempf <dominic.kempf@iwr.uni-heidelberg.de>
Date:
Fri, 9
Dec 2016 1
4:57:44
+0100
Subject: [PATCH] Current
loopy
patch
Date:
Tue, 20
Dec 2016 1
1:25:11
+0100
Subject: [PATCH] Current patch
---
loopy/check.py | 10 +++++-----
loopy/codegen/instruction.py |
6 +++
---
2 files changed,
8
insertions(+),
8
deletions(-)
loopy/codegen/instruction.py |
43 ++++++++++++++++++++++------------------
---
2 files changed,
27
insertions(+),
26
deletions(-)
diff --git a/loopy/check.py b/loopy/check.py
index 7562eac..ac03be0 100644
...
...
@@ -37,10 +37,54 @@ index 7562eac..ac03be0 100644
kernel.target.pre_codegen_check(kernel)
check_that_shapes_and_strides_are_arguments(kernel)
diff --git a/loopy/codegen/instruction.py b/loopy/codegen/instruction.py
index c490abb..
ec68921
100644
index c490abb..
138fd6f
100644
--- a/loopy/codegen/instruction.py
+++ b/loopy/codegen/instruction.py
@@ -219,9 +219,9 @@
def generate_call_code(codegen_state, insn):
@@ -105,24 +105,25 @@
def generate_assignment_instruction_code(codegen_state, insn):
# {{{ vectorization handling
- if codegen_state.vectorization_info:
- if insn.atomicity:
- raise Unvectorizable("atomic operation")
-
- vinfo = codegen_state.vectorization_info
- vcheck = VectorizabilityChecker(
- kernel, vinfo.iname, vinfo.length)
- lhs_is_vector = vcheck(insn.assignee)
- rhs_is_vector = vcheck(insn.expression)
-
- if not lhs_is_vector and rhs_is_vector:
- raise Unvectorizable(
- "LHS is scalar, RHS is vector, cannot assign")
-
- is_vector = lhs_is_vector
-
- del lhs_is_vector
- del rhs_is_vector
+# if codegen_state.vectorization_info:
+# if insn.atomicity:
+# raise Unvectorizable("atomic operation")
+#
+# vinfo = codegen_state.vectorization_info
+# vcheck = VectorizabilityChecker(
+# kernel, vinfo.iname, vinfo.length)
+# lhs_is_vector = vcheck(insn.assignee)
+# rhs_is_vector = vcheck(insn.expression)
+#
+# if not lhs_is_vector and rhs_is_vector:
+# raise Unvectorizable(
+# "LHS is scalar, RHS is vector, cannot assign")
+#
+# is_vector = lhs_is_vector
+#
+# del lhs_is_vector
+# del rhs_is_vector
+ is_vector = False
# }}}
@@ -219,9 +220,9 @@
def generate_call_code(codegen_state, insn):
# {{{ vectorization handling
...
...
This diff is collapsed.
Click to expand it.
python/dune/perftool/sumfact/sumfact.py
+
1
−
1
View file @
27383643
...
...
@@ -249,7 +249,7 @@ def generate_accumulation_instruction(visitor, accterm, measure, subdomain_id):
# TODO: At the moment this only works if we do not vectorize
# (over gradients) because loopy tries to acces a vectorclass
# variable.
if
get_option
(
'
fastdg
'
)
and
not
index
:
if
get_option
(
'
fastdg
'
):
ft
=
get_global_context_value
(
"
form_type
"
)
if
ft
==
'
residual
'
:
accum
=
accum
+
"
.data()
"
...
...
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