3 ms·
ahh yes. I have done something like that before with pyopencl but it was not pretty: https://www.youtube.com/watch?v=lnOmy1ly6M0&list=PLCN-Ml6vUJ-JTiqdvcHd0vZV
by gnarbarian 10y ago
ahh yes. I have done something like that before with pyopencl but it was not pretty:
https://www.youtube.com/watch?v=lnOmy1ly6M0&list=PLCN-Ml6vUJ-JTiqdvcHd0vZVSXDpw_RcW https://www.youtube.com/watch?v=lnOmy1ly6M0&list=PLCN-Ml6vUJ...
- Athas 10y agoI have exactly that example here: https://github.com/HIPERFIT/futhark-benchmarks/tree/master/accelerate/nbody https://github.com/HIPERFIT/futhark-benchmarks/tree/master/a... All simulation and rendering is done in Futhark, with Python+Pygame for gluing things together. All the particle information stays on the GPU at all times. The only thing being copied back to the CPU is the rendered bitmap, which is then immediately moved back with a Pygame blit operation...