From 2ffcd7c7e7737ff14e28afa599bfbb67b510e341 Mon Sep 17 00:00:00 2001 From: Dominic Kempf Date: Mon, 28 Aug 2017 17:41:30 +0200 Subject: [PATCH 1/2] Adjust the recursionlimit for complexity in number of inames So far, only complexity in number of instructions was taken into account. The constant is just a guess that fixes the test kernel that introduced the failure. --- loopy/schedule/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loopy/schedule/__init__.py b/loopy/schedule/__init__.py index 4281e50bd..d19cd61fb 100644 --- a/loopy/schedule/__init__.py +++ b/loopy/schedule/__init__.py @@ -1756,7 +1756,7 @@ def insert_barriers(kernel, schedule, kind, verify_only, level=0): def generate_loop_schedules(kernel, debug_args={}): from pytools import MinRecursionLimit - with MinRecursionLimit(len(kernel.instructions) * 2): + with MinRecursionLimit(max(len(kernel.instructions) * 2, len(kernel.all_inames()) * 4)): for sched in generate_loop_schedules_inner(kernel, debug_args=debug_args): yield sched -- GitLab From a8bf1300871679752bfab8eb48512c1bc86ff8e4 Mon Sep 17 00:00:00 2001 From: Dominic Kempf Date: Tue, 29 Aug 2017 10:23:38 +0200 Subject: [PATCH 2/2] fix pep8 --- loopy/schedule/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loopy/schedule/__init__.py b/loopy/schedule/__init__.py index d19cd61fb..518d850e9 100644 --- a/loopy/schedule/__init__.py +++ b/loopy/schedule/__init__.py @@ -1756,7 +1756,8 @@ def insert_barriers(kernel, schedule, kind, verify_only, level=0): def generate_loop_schedules(kernel, debug_args={}): from pytools import MinRecursionLimit - with MinRecursionLimit(max(len(kernel.instructions) * 2, len(kernel.all_inames()) * 4)): + with MinRecursionLimit(max(len(kernel.instructions) * 2, + len(kernel.all_inames()) * 4)): for sched in generate_loop_schedules_inner(kernel, debug_args=debug_args): yield sched -- GitLab