From b76f20b16e98c4a55b4e28628889003b6550d2ce Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Sun, 25 Jun 2017 18:41:32 +0200 Subject: [PATCH] Remove has_platform_compiler_cache logic--it turns out to be counterproductive --- pyopencl/__init__.py | 6 ------ pyopencl/characterize/__init__.py | 7 ------- 2 files changed, 13 deletions(-) diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index 06ff1e84..218efe6c 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 8e5ab73d..d0305189 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 -- GitLab