Hello Andreas,

On Mon, Nov 1, 2010 at 11:06 AM, Andreas Kloeckner
<li...@informa.tiker.net> wrote:
> It appears that there's really only one problem, and that is likely the
> one indicated here:
>
> kernel.cu: In function `md5_rng_int':
> kernel.cu:87: warning: this decimal constant is unsigned only in ISO C90
> (repeated many times)
>
> Note that this occurs in the random number generator. Then all the other
> failures you are seeing indicate that the RNG spit out NaNs, which again
> I presume is a consequence of whatever is being warned about above.
>
> To try and fix the immediate warning, can you try and add 'u' after all
> the integer literals in pycuda/curandom.py and let us know if that fixed it?
> I.e. you would rewrite
>
>  FF ( c, d, a, b, X2 , S13,  606105819);
>
> as
>
>  FF ( c, d, a, b, X2 , S13,  606105819u);
>
> HTH,
> Andreas
>

I applied your fix to integer literals in lines 87-102, 109-124, etc,
of pucuda/curandom.py. I now get the following errors when running
test_gpuarray.py: http://pastie.org/1264178

Faisal

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

Reply via email to