[PyOpenCL] Loading binary does not work
lists at informa.tiker.net
Mon Nov 21 17:22:42 PST 2011
On Mon, 21 Nov 2011 21:09:20 +0100, Matthias Vogelgesang <matthias.vogelgesang at gmail.com> wrote:
> Hi folks,
> according to the reference, it should be possible to re-load the
> output from a built program. However, the following short code is not
> ctx = cl.create_some_context(False)
> platform = cl.get_platforms()
> device = platform.get_devices()
> program = cl.Program(ctx, """
> __kernel void simple(__global float *in, __global float *out)
> out[get_global_id(0)] = in[get_global_id(0)];
> binary = program.get_info(cl.program_info.BINARIES)
> foo = cl.Program(ctx, [device], [binary])
> # I cannot build ...
> # ... nor call the kernel
> Is there something wrong with this code or PyOpenCL?
Fixed in git. The problem was that options defaulted to a list, which
the backend code didn't know how to process.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
More information about the PyOpenCL