On Sonntag 01 März 2009, Andreas Klöckner 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.
>
> 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.
>
> If there are strong opinion one way or the other, now is the time to say
> something.

Overall, I'm with Ian on this one. I don't see a good way to do the check and 
not hamper at least some legitimate uses.

Andreas

Attachment: signature.asc
Description: This is a digitally signed message part.

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

Reply via email to