From 153d2e9d98a6fa005220767bbfc8928c80c2aca3 Mon Sep 17 00:00:00 2001 From: Jerome Kieffer Date: Thu, 25 Jun 2020 09:54:33 +0200 Subject: [PATCH] Take the OpenCL version from the device rather then from the platform --- pyopencl/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index 8b6a29b1..cea71dda 100644 --- a/pyopencl/__init__.py +++ b/pyopencl/__init__.py @@ -676,7 +676,7 @@ def _add_functionality(): ", ".join(repr(dev) for dev in self.devices)) def context_get_cl_version(self): - return self.devices[0].platform._get_cl_version() + return self.devices[0]._get_cl_version() Context.__repr__ = context_repr from pytools import memoize_method -- GitLab