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
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
Andreas Klöckner
loopy
Commits
24fde8e4
Commit
24fde8e4
authored
11 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Support Ellipsis instead of "..." string as guessed argument marker.
parent
f5c90f95
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
loopy/kernel/creation.py
+4
-3
4 additions, 3 deletions
loopy/kernel/creation.py
with
4 additions
and
3 deletions
loopy/kernel/creation.py
+
4
−
3
View file @
24fde8e4
...
@@ -368,11 +368,12 @@ class IndexRankFinder(WalkMapper):
...
@@ -368,11 +368,12 @@ class IndexRankFinder(WalkMapper):
def
guess_kernel_args_if_requested
(
domains
,
instructions
,
temporary_variables
,
def
guess_kernel_args_if_requested
(
domains
,
instructions
,
temporary_variables
,
subst_rules
,
kernel_args
,
default_offset
):
subst_rules
,
kernel_args
,
default_offset
):
if
"
...
"
not
in
kernel_args
:
# Ellipsis is syntactically allowed in Py3.
if
"
...
"
not
in
kernel_args
and
Ellipsis
not
in
kernel_args
:
return
kernel_args
return
kernel_args
kernel_args
=
kernel_args
[:]
kernel_args
=
[
arg
for
arg
in
kernel_args
kernel_args
.
remove
(
"
...
"
)
if
arg
is
not
Ellipsis
and
arg
!=
"
...
"
]
from
loopy.symbolic
import
SubstitutionRuleExpander
from
loopy.symbolic
import
SubstitutionRuleExpander
submap
=
SubstitutionRuleExpander
(
subst_rules
)
submap
=
SubstitutionRuleExpander
(
subst_rules
)
...
...
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