Skip to content

Commit

Permalink
Silence a warning (with an explanation)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjward committed Dec 3, 2024
1 parent 936963b commit 79060e4
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pyop2/codegen/rep2loopy.py
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,14 @@ def renamer(expr):
assumptions = assumptions & pwaffd[parameters.layer_start].le_set(pwaffd[parameters.layer_end])
assumptions = reduce(operator.and_, assumptions.get_basic_sets())

# Even though we think we are setting loop priorities correctly here, loopy cannot
# use its new scheduler and raises a warning stating that there are
# "loop priority dependencies between sibling loop nests".
# See https://github.com/inducer/loopy/issues/890.
# Therefore until loopy fixes this we disable this warning and use the old (slower)
# scheduling algorithm.
silenced_warnings = ["v1_scheduler_fallback"]

wrapper = loopy.make_kernel(domains,
statements,
kernel_data=parameters.kernel_data,
Expand All @@ -556,7 +564,8 @@ def renamer(expr):
assumptions=assumptions,
lang_version=(2018, 2),
name=wrapper_name,
loop_priority=loop_priorities)
loop_priority=loop_priorities,
silenced_warnings=silenced_warnings)

# register kernel
kernel = builder.kernel
Expand Down

0 comments on commit 79060e4

Please sign in to comment.