Skip to content

Commit

Permalink
Use warn_with_kernel for V1-scheduler fallback
Browse files Browse the repository at this point in the history
  • Loading branch information
kaushikcfd authored and inducer committed Sep 22, 2024
1 parent 070df9f commit 66389cd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions loopy/schedule/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2252,8 +2252,10 @@ def _generate_loop_schedules_inner(
return

except V2SchedulerNotImplementedError as e:
from warnings import warn
warn(f"Falling back to a slow scheduler implementation due to: {e}",
warn_with_kernel(
kernel,
"v1_scheduler_fallback",
f"Falling back to a slow scheduler implementation due to: {e}",
stacklevel=1)

schedule_count = 0
Expand Down

0 comments on commit 66389cd

Please sign in to comment.