Hi, * Andreas Kl?ckner <[email protected]> [2009-02-03 09:36:21 -0500]:
Try the SCHED_YIELD argument to Device.make_context(). Haven't tried it, it's advertised as doing just that. You can then do the actual polling with either Stream.is_done() or Event.query().
Sorry I didn't get back to you about this earlier. I passed the SCHED_YIELD argument, and it works great! My CPU is down almost zero :) Thanks! The only problem is that I am printing status information, and prepared_async_call() doesn't actually return a zero-tuple as far as I can tell. Is this improved in 0.92? I am currently running 0.91 and don't want to go through more upgrade headache if it isn't going to add anything for me ;) Thanks so much! nick p.s. My code has quite a lot of rewriting and dynamic variable/parameter generation, so I will post to the list once it is released (GPL) as an example if anyone is interested... _______________________________________________ PyCuda mailing list [email protected] http://tiker.net/mailman/listinfo/pycuda_tiker.net
