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
aeb63380
Commit
aeb63380
authored
6 years ago
by
Kaushik Kulkarni
Browse files
Options
Downloads
Patches
Plain Diff
adjustment to pass statistics test.
parent
2278ef90
No related branches found
Branches containing commit
No related tags found
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
loopy/statistics.py
+17
-0
17 additions, 0 deletions
loopy/statistics.py
with
17 additions
and
0 deletions
loopy/statistics.py
+
17
−
0
View file @
aeb63380
...
...
@@ -1108,6 +1108,16 @@ def add_assumptions_guard(kernel, pwqpolynomial):
def
count
(
kernel
,
set
,
space
=
None
):
from
loopy.program
import
Program
if
isinstance
(
kernel
,
Program
):
if
len
([
in_knl_callable
for
in_knl_callable
in
kernel
.
program_callables_info
.
values
()
if
isinstance
(
in_knl_callable
,
CallableKernel
)])
!=
1
:
raise
NotImplementedError
(
"
Currently only supported for program with
"
"
only one CallableKernel.
"
)
kernel
=
kernel
.
root_kernel
try
:
if
space
is
not
None
:
set
=
set
.
align_params
(
space
)
...
...
@@ -1862,6 +1872,13 @@ def gather_access_footprints_for_single_kernel(kernel, ignore_uncountable=False)
def
gather_access_footprints
(
program
,
ignore_uncountable
=
False
):
# FIMXE: works only for one callable kernel till now.
if
len
([
in_knl_callable
for
in_knl_callable
in
program
.
program_callables_info
.
values
()
if
isinstance
(
in_knl_callable
,
CallableKernel
)])
!=
1
:
raise
NotImplementedError
(
"
Currently only supported for program with
"
"
only one CallableKernel.
"
)
from
loopy.preprocess
import
preprocess_program
,
infer_unknown_types
program
=
infer_unknown_types
(
program
,
expect_completion
=
True
)
...
...
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