Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
loopy
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
Model registry
Operate
Environments
Monitor
Incidents
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
Show more breadcrumbs
Kaushik Kulkarni
loopy
Commits
a4bf021a
Commit
a4bf021a
authored
9 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Use Subscript.index_tuple in more places
parent
4412cab0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
loopy/expression.py
+1
-3
1 addition, 3 deletions
loopy/expression.py
loopy/kernel/data.py
+1
-5
1 addition, 5 deletions
loopy/kernel/data.py
loopy/symbolic.py
+1
-3
1 addition, 3 deletions
loopy/symbolic.py
with
3 additions
and
11 deletions
loopy/expression.py
+
1
−
3
View file @
a4bf021a
...
...
@@ -323,9 +323,7 @@ class VectorizabilityChecker(RecursiveMapper):
if
not
isinstance
(
var
,
ArrayBase
):
raise
LoopyError
(
"
non-array subscript
'
%s
'"
%
expr
)
index
=
expr
.
index
if
not
isinstance
(
index
,
tuple
):
index
=
(
index
,)
index
=
expr
.
index_tuple
from
loopy.symbolic
import
get_dependencies
from
loopy.kernel.array
import
VectorArrayDimTag
...
...
This diff is collapsed.
Click to expand it.
loopy/kernel/data.py
+
1
−
5
View file @
a4bf021a
...
...
@@ -703,11 +703,7 @@ def _get_assignee_and_index(expr):
agg
=
expr
.
aggregate
assert
isinstance
(
agg
,
Variable
)
idx
=
expr
.
index
if
not
isinstance
(
idx
,
tuple
):
idx
=
(
idx
,)
return
(
agg
.
name
,
idx
)
return
(
agg
.
name
,
expr
.
index_tuple
)
else
:
raise
RuntimeError
(
"
invalid lvalue
'
%s
'"
%
expr
)
...
...
This diff is collapsed.
Click to expand it.
loopy/symbolic.py
+
1
−
3
View file @
a4bf021a
...
...
@@ -1159,9 +1159,7 @@ class AccessRangeMapper(WalkMapper):
if
expr
.
aggregate
.
name
!=
self
.
arg_name
:
return
subscript
=
expr
.
index
if
not
isinstance
(
subscript
,
tuple
):
subscript
=
(
subscript
,)
subscript
=
expr
.
index_tuple
if
not
get_dependencies
(
subscript
)
<=
set
(
domain
.
get_var_dict
()):
self
.
bad_subscripts
.
append
(
expr
)
...
...
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