Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion loopy/codegen/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ def generate_code_for_a_single_kernel(kernel, callables_table, target,
"""

from loopy.kernel import KernelState
if kernel.state != KernelState.SCHEDULED:
if kernel.state != KernelState.LINEARIZED:
raise LoopyError("cannot generate code for a kernel that has not been "
"scheduled")

Expand Down
2 changes: 1 addition & 1 deletion loopy/target/execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ def get_typed_and_scheduled_program_uncached(self, entrypoint, arg_to_dtype_set)
from loopy.type_inference import infer_unknown_types
program = infer_unknown_types(program, expect_completion=True)

if program.state < KernelState.SCHEDULED:
if program.state < KernelState.LINEARIZED:
from loopy.preprocess import preprocess_program
program = preprocess_program(program)

Expand Down
2 changes: 1 addition & 1 deletion loopy/transform/iname.py
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@ def join_sets_if_not_disjoint(sets):
# If partitioning was empty, we have recursed successfully and yield nothing


def get_iname_duplication_options(kernel, use_boostable_into=False):
def get_iname_duplication_options(kernel, use_boostable_into=None):
"""List options for duplication of inames, if necessary for schedulability

:returns: a generator listing all options to duplicate inames, if duplication
Expand Down