Skip to content
Merged
Changes from 1 commit
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
Next Next commit
Test loop prioties with v2 scheduler
Co-authored-by: Connor Ward <[email protected]>
  • Loading branch information
kaushikcfd and connorjward committed Dec 4, 2024
commit d35f9f9130b919bb0923fd5baf9df14de14997c8
15 changes: 15 additions & 0 deletions test/test_loopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -3704,6 +3704,21 @@ def test_long_kernel():
lp.get_one_linearized_kernel(t_unit.default_entrypoint, t_unit.callables_table)


@pytest.mark.filterwarnings("error:.*:loopy.LoopyWarning")
def test_loop_imperfect_nest_priorities_in_v2_scheduler():
# Reported by Connor Ward. See <https://github.com/inducer/loopy/issues/890>.
knl = lp.make_kernel(
"{ [i,j,k]: 0 <= i,j,k < 5}",
"""
x[i, j] = i + j
y[i, k] = i + k
""",
loop_priority=frozenset({("i", "j"), ("i", "k")}),
)

code = lp.generate_code_v2(knl)


if __name__ == "__main__":
if len(sys.argv) > 1:
exec(sys.argv[1])
Expand Down