On Sun, Mar 1, 2009 at 14:21, Andreas Klöckner <[email protected]>wrote:

> On Sonntag 01 März 2009, Nicholas Tung wrote:
> > It's good that non-linear arrays fail. As for non-contiguous ones, I
> think
> > it would be much better to check (it's just a flag check) instead of
> > relying on the user to read all of the documentation (I certainly don't).
>
> 1) Careful, terminology trap. F-contiguous != contiguous (what you call
> nonlinear) != C-contiguous.


cuda is C, no? is "F" something other than fortran?


> 2) I'm torn about the flag check. I don't want people falling into the same
> trap as you. On the other hand, your change outlaws legitimate code (and
> forces it into a sketchy-sounding "_unchecked" code path). Also, having
> this
> check just for C-contiguity and not F is kind of asymmetric.


I agree "_unchecked" is sketchy, which is why I didn't bother to make a full
diff.


> If there are strong opinion one way or the other, now is the time to say
> something.


I think there should be some sort of check. But maybe all of this can wait
for your codepy python-aware C structures? I'd like to see some tutorial
examples on that when you have time. At the time, I've mostly been just
using pycuda as-is (and it's so nice to have, thanks for all your work).

regards,
Nicholas
_______________________________________________
PyCuda mailing list
[email protected]
http://tiker.net/mailman/listinfo/pycuda_tiker.net

Reply via email to