“…We have recently proved (Pozzi et al, 2019 ), how, on a CPU, a new algorithm (compressive sensing weighted Gerchberg-Saxton, CS-WGS), applying the principles of compressed sensing to the iterations of WGS can reduce its computational cost asymptotically close to the cost of RS, while maintaining the high quality of WGS holograms. Here, we present the implementation of CS-WGS on a low-cost consumer GPU, demonstrating that the algorithm is well-suited to GPU implementation, enabling video-rate computation of holograms with e > 0.9 and u > 0.9 for N < 100 and M < 1, 152 2 , ideally adaptable to feedback-based optogenetic control of neuronal networks.…”