Hi Thomas, all,

On Wed, 29 Jun 2011 11:22:40 -0400, Thomas Wiecki <thomas_wie...@brown.edu> 
wrote:
> I always got these warnings while compiling, but now it seems they
> lead to a compile error:
> pycuda.driver.CompileError: nvcc said it demoted types in source code
> it compiled--this is likely not what you want.
> 
> My function is an elementwise kernel (so c code), all input arguments
> and variables are floats. In the function I use logf, expf, sinf,
> floorf, fmaxf etc. Would any of these return a double? How can I find
> the perpetrator?

I decided to make this an error simply because if nvcc decides to demote
arguments/data structures, that could lead to unexplained crashes if
PyCUDA assumes it should be feeding in doubles.

If that was ill-advised somehow, please let me know.

Andreas

Attachment: pgpgyudvCRQUN.pgp
Description: PGP signature

_______________________________________________
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda

Reply via email to