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
9620c617
Commit
9620c617
authored
9 years ago
by
Andreas Klöckner
Browse files
Options
Downloads
Patches
Plain Diff
Fix computation of check domains in the presence of boosting
parent
94656e0f
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/check.py
+8
-5
8 additions, 5 deletions
loopy/check.py
with
8 additions
and
5 deletions
loopy/check.py
+
8
−
5
View file @
9620c617
from
__future__
import
division
from
__future__
import
absolute_import
import
six
from
six.moves
import
range
from
__future__
import
absolute_import
,
division
,
print_function
__copyright__
=
"
Copyright (C) 2012 Andreas Kloeckner
"
...
...
@@ -25,6 +22,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
"""
import
six
from
six.moves
import
range
from
islpy
import
dim_type
import
islpy
as
isl
...
...
@@ -484,10 +483,14 @@ def check_implemented_domains(kernel, implemented_domains, code=None):
.
project_out_except
(
insn_inames
,
[
dim_type
.
set
]))
insn_domain
=
kernel
.
get_inames_domain
(
insn_inames
)
insn_parameters
=
frozenset
(
insn_domain
.
get_var_names
(
dim_type
.
param
))
assumptions
,
insn_domain
=
align_two
(
assumption_non_param
,
insn_domain
)
desired_domain
=
((
insn_domain
&
assumptions
)
.
project_out_except
(
insn_inames
,
[
dim_type
.
set
]))
.
project_out_except
(
insn_inames
,
[
dim_type
.
set
])
.
project_out_except
(
insn_parameters
,
[
dim_type
.
param
]))
insn_impl_domain
=
(
insn_impl_domain
.
project_out_except
(
insn_parameters
,
[
dim_type
.
param
]))
insn_impl_domain
,
desired_domain
=
align_two
(
insn_impl_domain
,
desired_domain
)
...
...
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