diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index 06ff1e84e136f47019276eea1a4b063dc69dabce..218efe6c6d32bcac25008a7ab3e1d829d19fd4fd 100644 --- a/pyopencl/__init__.py +++ b/pyopencl/__init__.py @@ -431,18 +431,12 @@ class Program(object): cache_dir = getattr(self._context, 'cache_dir', None) import os - from pyopencl.characterize import has_platform_compiler_cache - plat_has_cache = has_platform_compiler_cache(self._context.devices[0]) build_descr = None if os.environ.get("PYOPENCL_NO_CACHE") and self._prg is None: build_descr = "uncached source build (cache disabled by user)" self._prg = _cl._Program(self._context, self._source) - elif plat_has_cache and self._prg is None: - build_descr = "platform-cached source build" - self._prg = _cl._Program(self._context, self._source) - from time import time start_time = time() was_cached = False diff --git a/pyopencl/characterize/__init__.py b/pyopencl/characterize/__init__.py index 8e5ab73d9d3e40973d5446c67c71cd82037d1442..d03051897b8e35a1a114fa5e8f4cebd145bb1589 100644 --- a/pyopencl/characterize/__init__.py +++ b/pyopencl/characterize/__init__.py @@ -387,10 +387,3 @@ def has_struct_arg_count_bug(dev, ctx=None): return "pocl" return False - - -def has_platform_compiler_cache(dev): - if dev.platform.name == "Portable Computing Language": - return True - - return False