From 10adc930f5fb7e3a4746f5e0f3f5b0ada5094c69 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Fri, 2 Jun 2017 20:41:56 -0400 Subject: [PATCH] Fix platform-cache logic for from-binary builds --- pyopencl/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index 0d912e41..06ff1e84 100644 --- a/pyopencl/__init__.py +++ b/pyopencl/__init__.py @@ -439,7 +439,7 @@ class Program(object): build_descr = "uncached source build (cache disabled by user)" self._prg = _cl._Program(self._context, self._source) - if plat_has_cache: + elif plat_has_cache and self._prg is None: build_descr = "platform-cached source build" self._prg = _cl._Program(self._context, self._source) -- GitLab