diff --git a/pyopencl/algorithm.py b/pyopencl/algorithm.py index 197ad94839745eb62934db9b4993a45e56038244..c4eb43eaef3b144e8b6217551a1f44ccabf2de3c 100644 --- a/pyopencl/algorithm.py +++ b/pyopencl/algorithm.py @@ -911,7 +911,6 @@ class ListOfListsBuilder: devices=self.devices) def do_not_vectorize(self): - from pytools import any return (self.complex_kernel and any(dev.type & cl.device_type.CPU for dev in self.context.devices)) diff --git a/pyopencl/reduction.py b/pyopencl/reduction.py index 6eebe729f57b6f81cfab4bf8321173fe4da1bb46..7d6c6482c4dc16620fd9f255938ac86a1f349833 100644 --- a/pyopencl/reduction.py +++ b/pyopencl/reduction.py @@ -156,7 +156,6 @@ def _get_reduction_source( # }}} from mako.template import Template - from pytools import all from pyopencl.characterize import has_double_support arguments = ", ".join(arg.declarator() for arg in parsed_args) diff --git a/pyopencl/scan.py b/pyopencl/scan.py index 24b759069d54303c2607a36d8c2013f71a192dee..0106207cb1b91eaf9289f4f03b47dfe5b015b669 100644 --- a/pyopencl/scan.py +++ b/pyopencl/scan.py @@ -1079,7 +1079,6 @@ class _GenericScanKernelBase: # {{{ set up shared code dict - from pytools import all from pyopencl.characterize import has_double_support self.code_variables = dict( @@ -1258,7 +1257,6 @@ class GenericScanKernel(_GenericScanKernelBase): solutions.append((wg_size*k_group_size, k_group_size, wg_size)) if is_gpu: - from pytools import any for wg_size_floor in [256, 192, 128]: have_sol_above_floor = any(wg_size >= wg_size_floor for _, _, wg_size in solutions) diff --git a/pyopencl/tools.py b/pyopencl/tools.py index a5ab75cea4cffd4f89a17b7b37f9e1f551f5f167..5b8146858119e233338b8e23d4414f1005e3cdda 100644 --- a/pyopencl/tools.py +++ b/pyopencl/tools.py @@ -657,7 +657,6 @@ def match_dtype_to_c_struct(device, name, dtype, context=None): size = int(size_and_offsets[0]) - from pytools import any offsets = size_and_offsets[1:] if any(ofs >= size for ofs in offsets): # offsets not plausible