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
ea614e00
Commit
ea614e00
authored
8 years ago
by
Matt Wala
Browse files
Options
Downloads
Patches
Plain Diff
Relax restriction on where temporaries may be used.
parent
078df0c6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
loopy/check.py
+0
-28
0 additions, 28 deletions
loopy/check.py
with
0 additions
and
28 deletions
loopy/check.py
+
0
−
28
View file @
ea614e00
...
...
@@ -342,33 +342,6 @@ def check_write_destinations(kernel):
or
wvar
in
kernel
.
arg_dict
)
and
wvar
not
in
kernel
.
all_params
():
raise
LoopyError
def
check_that_temporaries_are_well_defined_in_hw_axes
(
kernel
):
from
loopy.schedule.device_mapping
import
(
get_common_hw_inames
,
get_def_and_use_lists_for_all_temporaries
,
get_hw_inames
)
def_lists
,
use_lists
=
get_def_and_use_lists_for_all_temporaries
(
kernel
)
for
temporary
in
sorted
(
def_lists
):
def_list
=
def_lists
[
temporary
]
hw_inames
=
get_common_hw_inames
(
kernel
,
def_list
)
# Ensure that no use of the temporary is at a loop nesting level
# that is "more general" than the definition.
for
use
in
use_lists
[
temporary
]:
if
not
hw_inames
<=
get_hw_inames
(
kernel
,
use
):
raise
LoopyError
(
"
Temporary variable `{temporary}` gets used in a more
"
"
general hardware parallel loop than it is defined.
"
"
(used by instruction id `{id}`, inames: {use_inames})
"
"
(defined in inames: {def_inames}).
"
.
format
(
temporary
=
temporary
,
id
=
use
,
use_inames
=
"
,
"
.
join
(
sorted
(
get_hw_inames
(
kernel
,
use
))),
def_inames
=
"
,
"
.
join
(
sorted
(
hw_inames
))))
# }}}
...
...
@@ -386,7 +359,6 @@ def pre_schedule_checks(kernel):
check_for_data_dependent_parallel_bounds
(
kernel
)
check_bounds
(
kernel
)
check_write_destinations
(
kernel
)
check_that_temporaries_are_well_defined_in_hw_axes
(
kernel
)
logger
.
info
(
"
pre-schedule check %s: done
"
%
kernel
.
name
)
except
KeyboardInterrupt
:
...
...
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