diff --git a/loopy/schedule/__init__.py b/loopy/schedule/__init__.py index 57cf74b808ae1a7107e76a18a3876785ab8baabd..0fa2c8ed59ee906add9943ed64d7ff2910d517ac 100644 --- a/loopy/schedule/__init__.py +++ b/loopy/schedule/__init__.py @@ -1073,28 +1073,6 @@ def generate_loop_schedules_internal( % iname) continue - if ( - not sched_state.within_subkernel - and iname not in sched_state.prescheduled_inames): - # Avoid messing up some orderings such as picking: - # - # EnterLoop(temporary.reload) - # CallKernel - # ... - # - # instead of - # - # CallKernel - # EnterLoop(temporary.reload) - # ... - # - # This serves a heuristic to catch some bad decisions early, the - # scheduler will not allow the first variant regardless. - if debug_mode: - print("scheduling '%s' prohibited because we are outside " - "a subkernel" % iname) - continue - currently_accessible_inames = ( active_inames_set | sched_state.parallel_inames) if (