Hi Yiyin, On Tue, 21 Sep 2010 15:53:50 -0400, Yiyin Zhou <[email protected]> wrote: > Thanks. Actually I thought this problem is somehow related to the > problem I have, so I listed that simple demo. > > The actual problem I have is to pass a complex scalar to a kernel, > type is defined by cuComplex.h, it sometimes gave me an incorrect > result (I guess the input argument struct is misaligned). I have > attached a script to reproduce this error.
Hmm--I can't really say much about cuComplex. PyCUDA's complex stuff is from #include <pycuda-complex.hpp> and the type is pycuda::complex<float> But you are right--this does look like an alignment issue. Please speak up if you can also reproduce this with the PyCUDA types. Andreas
pgpvYIiqL19gh.pgp
Description: PGP signature
_______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
