On Mon, 15 Oct 2012 17:56:01 -0400
Andreas Kloeckner <[email protected]> wrote:

> Jerome Kieffer <[email protected]> writes:
> 
> > Dear Python/OpenCL community,
> >
> > I am pretty new (py)opencl and encountered a problem, maybe it a lack of 
> > understanding of openCL, but I found strange python seg-faults:
> > test program:
> >
> > #!/usr/bin/python
> > import numpy, pyopencl
> > ctx = pyopencl.create_some_context()
> > data=numpy.random.random((1024,1024)).astype(numpy.float32)
> > img = pyopencl.image_from_array(ctx, ary=data, mode="r", norm_int=False, 
> > num_channels=1)
> > print img
> 
> Ah, no--just remembered what the issue is. You'll have to recompile
> PyOpenCL with
> 
> CL_PRETEND_VERSION = "1.1"
> 
> in siteconf.py until we put in a real fix for this.

With this fix, it works ... thanks
May be we should warn the debian team ?

-- 
Jérôme Kieffer
Data analysis unit - ESRF

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

Reply via email to