[PyOpenCL] typecast real to complex
Andreas Kloeckner
lists at informa.tiker.net
Wed Mar 7 16:55:57 PST 2012
<#part sign=pgpmime>
Hi Alex, Karsten,
On Wed, 7 Mar 2012 16:43:22 -0500, Alex Nitz <alex.nitz at ligo.org> wrote:
> This is what I am getting on an NVIDIA GTX580.
>[snip]
> :20:20: error: can't convert between vector values of different size
> ('cfloat_t __attribute__((address_space(1)))' (aka 'float2
> __attribute__((address_space(1)))') and 'double')
> z[i] = cfloat_cast(a*x[i]) + cfloat_cast(b);
> ^~~~~~~~~~~~~~~~~~~
> :20:33: note: instantiated from:
> z[i] = cfloat_cast(a*x[i]) + cfloat_cast(b);
I've committed what I think might be a workaround for this to git. Can
you please try it out and report back?
Andreas
More information about the PyOpenCL
mailing list