From 76c59c5cf2b812a0ddafcb7305d2a9af41fc9f40 Mon Sep 17 00:00:00 2001 From: Tim Warburton Date: Tue, 25 Oct 2011 19:30:49 -0500 Subject: [PATCH] Whitespace changes. --- loopy/isl_helpers.py | 2 +- loopy/kernel.py | 4 ++-- loopy/schedule.py | 2 +- loopy/symbolic.py | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/loopy/isl_helpers.py b/loopy/isl_helpers.py index 84cebabcb..de0c1f0f1 100644 --- a/loopy/isl_helpers.py +++ b/loopy/isl_helpers.py @@ -93,7 +93,7 @@ def pw_aff_to_aff(pw_aff): def dump_space(ls): - return " ".join("%s: %d" % (dt, ls.dim(getattr(dim_type, dt))) + return " ".join("%s: %d" % (dt, ls.dim(getattr(dim_type, dt))) for dt in dim_type.names) diff --git a/loopy/kernel.py b/loopy/kernel.py index 9d78eb961..ffbae5657 100644 --- a/loopy/kernel.py +++ b/loopy/kernel.py @@ -212,7 +212,7 @@ class TemporaryVariable(Record): class Instruction(Record): """ - :ivar id: An (otherwise meaningless) identifier that is unique within + :ivar id: An (otherwise meaningless) identifier that is unique within a :class:`LoopKernel`. :ivar assignee: :ivar expression: @@ -661,7 +661,7 @@ class LoopKernel(Record): from loopy.isl_helpers import static_max_of_pw_aff try: # insist block size is constant - size = static_max_of_pw_aff(size, + size = static_max_of_pw_aff(size, constants_only=isinstance(tag, LocalIndexTag)) except ValueError: pass diff --git a/loopy/schedule.py b/loopy/schedule.py index f7eb17d4a..1c4a27652 100644 --- a/loopy/schedule.py +++ b/loopy/schedule.py @@ -553,7 +553,7 @@ def assign_automatic_axes(kernel, only_axis_0=True): # of a new axis assignment. if only_axis_0: - # If we were only assigining axis 0, then assign all the remaining + # If we were only assigining axis 0, then assign all the remaining # axes next. return assign_automatic_axes(kernel, only_axis_0=False) else: diff --git a/loopy/symbolic.py b/loopy/symbolic.py index 50a2659ae..4504daa7d 100644 --- a/loopy/symbolic.py +++ b/loopy/symbolic.py @@ -85,7 +85,7 @@ class DependencyMapper(DependencyMapperBase): # {{{ functions to primitives class FunctionToPrimitiveMapper(IdentityMapper): - """Looks for invocations of a function called 'cse' or 'reduce' and + """Looks for invocations of a function called 'cse' or 'reduce' and turns those into the actual pymbolic primitives used for that. """ -- GitLab