On Fri, 29 Apr 2011 04:38:23 -0400, Eric Swanson <[email protected]> wrote:
> 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:

Fixed, thanks!

Andreas

Attachment: pgpY9HC4UMO1z.pgp
Description: PGP signature

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

Reply via email to