[PyCuda] Event api (doc, time_till / time_since --> __sub__)
Nicholas Tung
ntung at ntung.com
Sun Apr 19 14:06:43 PDT 2009
I could be in addition...
Perhaps there could be a .secs() function, which wouldn't require any
overloading (and arguably make more sense type-wise)?
As is, the documentation for time_till and time_since isn't particularly
accessible. Please at least convert the doc patch for that to the existing
functions.
regards,
Nicholas
On Sun, Apr 19, 2009 at 14:00, Andreas Klöckner <lists at informa.tiker.net>wrote:
> Hi Nicolas,
>
> On Donnerstag 16 April 2009, Nicholas Tung wrote:
> > I think it would be more intuitive if you changed time_till and
> > time_since to Python's __sub__, so one could write "elapsed = end -
> begin"
> > for events. A patch is attached, with documentation (and corrected
> > documentation for record_in_stream --> record).
>
> I'm generally wary of overloaded operators, no matter how good an idea they
> seem to be at the time. But even if I did like the idea, I don't see a
> compelling reason to break backwards compatibility (and go through the
> requisite painful transition period). Sorry.
>
> Thanks for the doc fix, I've applied it.
>
> Andreas
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tiker.net/pipermail/pycuda/attachments/20090419/efe21e7e/attachment-0001.htm>
More information about the PyCUDA
mailing list