On Wed, Aug 24, 2011 at 8:20 AM, David Mertens <[email protected]> wrote:
> Ah, I see. I think you might be trying to fit a round peg into a
> square hole, so to speak.

I agree.

At the very least, you're going to need a loop over each list, calling
len() on it (to then stick it into an array to copy to the device).
At that point, it seems like you're better off just doing:

i_max = 0
len_max = 0
for i, sublist in enumerate(mylist):
    len_sublist = len(sublist)
    if len_sublist > len_max:
        len_max = len_sublist
        i_max = i

What factors are driving you to consider CUDA for this problem?

Eli

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

Reply via email to