diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index 8b6a29b137496298791e44ee874a5d1b30c4221d..cea71dda1fb21ff39850e3d7302b0434074657a3 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