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
2f343708
Commit
2f343708
authored
9 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Fix lhs/rhs reversal typo, allow vectorizing 'vector = scalar'
parent
5608ba23
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
loopy/codegen/instruction.py
+4
-4
4 additions, 4 deletions
loopy/codegen/instruction.py
with
4 additions
and
4 deletions
loopy/codegen/instruction.py
+
4
−
4
View file @
2f343708
...
...
@@ -96,12 +96,12 @@ def generate_expr_instruction_code(kernel, insn, codegen_state):
vinfo
=
codegen_state
.
vectorization_info
vcheck
=
VectorizabilityChecker
(
kernel
,
vinfo
.
iname
,
vinfo
.
length
)
r
hs_is_vector
=
vcheck
(
insn
.
assignee
)
l
hs_is_vector
=
vcheck
(
insn
.
expression
)
l
hs_is_vector
=
vcheck
(
insn
.
assignee
)
r
hs_is_vector
=
vcheck
(
insn
.
expression
)
if
lhs_is_vector
!=
rhs_is_vector
:
if
not
lhs_is_vector
and
rhs_is_vector
:
raise
Unvectorizable
(
"
LHS
and
RHS
d
is
agree on whether they are vectors
"
)
"
LHS
is scalar,
RHS is
vector, cannot assign
"
)
is_vector
=
lhs_is_vector
...
...
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