From f3947644b480d8ddd79273ae3a4acdd519eb227e Mon Sep 17 00:00:00 2001 From: "[6~" <inform@tiker.net> Date: Thu, 9 Jan 2020 13:37:04 -0600 Subject: [PATCH] Fix setting of Program._context when constructed from _Program --- pyopencl/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py index 19cb0ea2..d44604e7 100644 --- a/pyopencl/__init__.py +++ b/pyopencl/__init__.py @@ -381,7 +381,7 @@ class Program(object): if arg2 is None: # 1-argument form: program self._prg = arg1 - self._context = self._prg.context + self._context = self._prg.get_info(program_info.CONTEXT) elif arg3 is None: # 2-argument form: context, source -- GitLab