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
1980520b
Commit
1980520b
authored
9 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Prevent infinite recursion in automatic axis assignment
parent
3c391614
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/kernel/tools.py
+6
-3
6 additions, 3 deletions
loopy/kernel/tools.py
with
6 additions
and
3 deletions
loopy/kernel/tools.py
+
6
−
3
View file @
1980520b
...
...
@@ -773,9 +773,12 @@ def assign_automatic_axes(kernel, axis=0, local_size=None):
desired_length
=
kernel
.
get_constant_iname_length
(
iname
)
except
isl
.
Error
:
# Likely unbounded, automatic assignment is not
# going to happen for this iname
return
assign_automatic_axes
(
kernel
,
axis
=
recursion_axis
,
local_size
=
local_size
)
# going to happen for this iname.
new_iname_to_tag
=
kernel
.
iname_to_tag
.
copy
()
new_iname_to_tag
[
iname
]
=
None
return
assign_automatic_axes
(
kernel
.
copy
(
iname_to_tag
=
new_iname_to_tag
),
axis
=
recursion_axis
)
if
axis
is
None
:
# {{{ find a suitable axis
...
...
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