I think it just allocates the maximum number. Previously I wondered
how I could find this maximum number, it is stored in
generator.generators_per_block (=512 on my card).

So I guess if my matrix is bigger than 512  I would have to execute
the kernel more than once and have it work on different chunks (each
of size 512) of the array? Is there any helper function for this?

On Wed, Dec 14, 2011 at 4:49 PM, Anthony LaTorre <[email protected]> wrote:
>> Also, what is missing from the docs in your opinion? Would you mind
>> providing a doc patch to add whatever you think is missing?
>
> The docs for the XORWOWRandomNumberGenerator class only tell you how to
> instantiate it; it doesn't cover any of the member functions or member
> variables (for example, how to get a hold of the gpu pointer to the random
> number states). Also, the source code in this module is pretty wild; maybe
> if I stared at it longer I could figure out what is going on. Also, is there
> any way using this module to specify the number of states you want?
>
> On Mon, Dec 12, 2011 at 5:45 AM, Thomas Wiecki <[email protected]>
> wrote:
>>
>> Hi Andreas,
>>
>> yes, the warning is still an issue. I just removed the raised
>> exception in pycuda and it works fine. But I think there should be a
>> switch to not raise and exception on this warning. Catching the
>> exception also doesn't work as execution of the rest of the function
>> is still canceled.
>>
>> I will try my hands at a doc patch but am not sure when I can get to it.
>>
>> Thomas
>>
>> On Sun, Dec 11, 2011 at 11:18 PM, Andreas Kloeckner
>> <[email protected]> wrote:
>> > On Thu, 8 Dec 2011 20:57:22 -0500, Thomas Wiecki
>> > <[email protected]> wrote:
>> >> OK, but it's bailing on this warning, any way I can set it to ignore
>> >> this warning?
>> >
>> > Hi Thomas, is the warning still an issue? Or has this been resolved
>> > somehow?
>> >
>> > Also, what is missing from the docs in your opinion? Would you mind
>> > providing a doc patch to add whatever you think is missing?
>> >
>> > Thanks,
>> > Andreas
>>
>> _______________________________________________
>> PyCUDA mailing list
>> [email protected]
>> http://lists.tiker.net/listinfo/pycuda
>
>

_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to