Skip to content

Commit

Permalink
Merge branch 'main' into withtag
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasdiener authored Nov 20, 2024
2 parents 123a457 + c80684d commit 7b60f42
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
10 changes: 1 addition & 9 deletions loopy/kernel/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class LoopKernel(Taggable):
.. autoattribute:: domains
.. autoattribute:: instructions
.. autoattribute:: args
.. autoattribute:: schedule
.. autoattribute:: linearization
.. autoattribute:: name
.. autoattribute:: preambles
.. autoattribute:: preamble_generators
Expand Down Expand Up @@ -530,14 +530,6 @@ def _get_inames_domain_backend(self, inames):

# }}}

@property
def schedule(self):
warn(
"'LoopKernel.schedule' is deprecated and will be removed in 2022. "
"Call 'LoopKernel.linearization' instead.",
DeprecationWarning, stacklevel=2)
return self.linearization

# {{{ iname wrangling

def iname_tags(self, iname):
Expand Down
2 changes: 1 addition & 1 deletion loopy/schedule/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ def _generate_loop_schedules_v2(kernel: LoopKernel) -> Sequence[ScheduleItem]:
raise V2SchedulerNotImplementedError("v2 scheduler cannot schedule"
" kernels with instruction priorities set.")

if kernel.schedule is not None:
if kernel.linearization is not None:
# cannot handle preschedule yet
raise V2SchedulerNotImplementedError("v2 scheduler cannot schedule"
" prescheduled kernels.")
Expand Down

0 comments on commit 7b60f42

Please sign in to comment.