From ac2eb5bf356a5435c31b9f32ca71ac8a144fee58 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 7 Dec 2020 17:55:50 -0600 Subject: [PATCH 1/2] Add link to canonical name of TargetBase --- loopy/target/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/loopy/target/__init__.py b/loopy/target/__init__.py index 6bad214ec..8af47c412 100644 --- a/loopy/target/__init__.py +++ b/loopy/target/__init__.py @@ -39,6 +39,14 @@ __doc__ = """ .. autoclass:: NumbaTarget .. autoclass:: NumbaCudaTarget +References to Canonical Names +----------------------------- + +.. currentmodule:: loopy.target + +.. class:: TargetBase + + See :class:`loopy.TargetBase`. """ -- GitLab From 87c398ae6c00f3db8e4559824059752d254ce81f Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 7 Dec 2020 18:15:46 -0600 Subject: [PATCH 2/2] Remove unnecessary any/all imports --- loopy/preprocess.py | 1 - loopy/schedule/__init__.py | 1 - 2 files changed, 2 deletions(-) diff --git a/loopy/preprocess.py b/loopy/preprocess.py index ab5e703e4..40b582734 100644 --- a/loopy/preprocess.py +++ b/loopy/preprocess.py @@ -256,7 +256,6 @@ def find_temporary_address_space(kernel): overall_aspace = max(desired_aspace_per_insn) - from pytools import all if not all(iaspace == overall_aspace for iaspace in desired_aspace_per_insn): raise LoopyError("not all instructions agree on the " "the desired address space (private/local/global) of the " diff --git a/loopy/schedule/__init__.py b/loopy/schedule/__init__.py index 0eae1c4cc..fde967c65 100644 --- a/loopy/schedule/__init__.py +++ b/loopy/schedule/__init__.py @@ -182,7 +182,6 @@ def has_barrier_within(kernel, sched_index): if isinstance(sched_item, BeginBlockItem): loop_contents, _ = gather_schedule_block( kernel.schedule, sched_index) - from pytools import any return any(isinstance(subsched_item, Barrier) for subsched_item in loop_contents) elif isinstance(sched_item, Barrier): -- GitLab