On Freitag 30 Januar 2009, Nicholas S-A wrote: > Hi all, > I have two questions about PyCUDA which I have run up against in my > testing to use it for a few applications: > 1) Is there any integration between PyOpenGL/PyGame and PyCUDA like > there is between PyCUDA and OpenGL where VBOs can be shared on the > device? > 2) Can I poll the GPUs instead of blocking? Right now I have three > python threads which are running three CPUs at 100% to... wait for the > GPUs. Timing isn't too tight and I could easily get away with polling > every second or two (to drop CPU usage), but I haven't figured out a way > to do that yet.
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(). HTH, Andreas
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ PyCuda mailing list [email protected] http://tiker.net/mailman/listinfo/pycuda_tiker.net
