Hello all,

I've noticed a tiny typo on the git head version. _cl.Program is used
instead of _cl._Program, breaking program instantiation with
pre-generated binaries. Patch follows:

diff --git a/pyopencl/__init__.py b/pyopencl/__init__.py
index f8e8156..bcc1dbe 100644
--- a/pyopencl/__init__.py
+++ b/pyopencl/__init__.py
@@ -386,7 +386,7 @@ class Program(object):
             self._prg = None
         else:
             # 3-argument form: context, devices, binaries
-            self._prg = _cl.Program(context, arg1, arg2)
+            self._prg = _cl._Program(context, arg1, arg2)
 
     def _get_prg(self):
         if self._prg is not None:

Thank you,

-- 
Eric Swanson
http://www.alloscomp.com/
GPG Key: 7A96 A45E 1603 6FCB EA72 146D 33D6 60E9 FFC7 420D


_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl

Reply via email to