On Tue, Nov 16, 2010 at 9:33 PM, Cyrus Omar <cy...@cmu.edu> wrote:

> On Tue, Nov 16, 2010 at 20:25, Dan Goodman <dg.pyc...@thesamovar.net>wrote:
>
>> A final option that I thought of would be to check for a launch timeout
>> failure after each kernel launch, and if it happens, divide my problem size
>> by two and try again, repeating until I don't get any launch failures. The
>> trouble with this approach is that I'll get multiple failures and screen
>> flashes before it settles down to a value that works, wasting a little bit
>> of time but more importantly being quite alarming. It also doesn't feel very
>> elegant... ;-)
>
>
> This is risky, as per the TDR webpage you linked to:
>

Why not starting with a small size and if it take less then half of 2 or 5
seconds  depending of the os, you double the size for the next time?

Fred
_______________________________________________
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda

Reply via email to